/* =========================================================================
   Ganoti – galerie-minimalistisches Joomla-Template
   Despina Ganoti Malerei
   Schrift: Manrope, mitgeliefert und lokal ausgeliefert – kein Google,
   keine Tracker, DSGVO-freundlich.
   ========================================================================= */

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 300;
	font-display: swap;
	src: url("../fonts/manrope-latin-300-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Manrope";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
	--paper:        #FBFAF8;
	--paper-2:      #F4F2ED;
	--ink:          #16150F;
	--anthracite:   #2C2B27;
	--muted:        #6F6B62;
	--line:         #E4E0D7;
	--line-strong:  #CFC9BC;
	--accent:       #8A7A5E;

	--sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	/* Überschriften nutzen dieselbe Familie, nur anders gesetzt. */
	--serif: var(--sans);

	--wrap: 1320px;
	--gutter: clamp(20px, 5vw, 64px);
	--gap: clamp(18px, 2.4vw, 40px);
	--tile: 300px;

	--head-h: 84px;

	--ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ Reset */

*, *::before, *::after { box-sizing: border-box; }

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

body.g-site {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.g-site img { max-width: 100%; height: auto; display: block; }

body.g-site a { color: inherit; text-decoration: none; }

/* Überschriften erben ihre Farbe vom Umfeld. Stünde hier eine feste
   Farbe, überschriebe sie wegen der höheren Spezifität jede spätere
   Regel – genau daran war der Name im hellen Kopfbereich schwarz. */
body.g-site h1, body.g-site h2, body.g-site h3,
body.g-site h4, body.g-site h5, body.g-site h6 {
	font-family: var(--sans);
	font-weight: 300;
	line-height: 1.18;
	letter-spacing: -0.022em;
	color: inherit;
	margin: 0 0 .6em;
}

body.g-site h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
body.g-site h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
body.g-site h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* Nur die Blockränder setzen – so bleibt "margin-inline: auto"
   in nachfolgenden Regeln wirksam und zentrierte Textblöcke
   rutschen nicht nach links. */
body.g-site p { margin-block: 0 1.2em; }

body.g-site hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--ink); color: var(--paper); }

.g-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.g-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--ink);
	color: var(--paper);
	padding: .8rem 1.2rem;
}

.g-skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ------------------------------------------------------------------ Topbar */

.g-topbar {
	background: var(--paper-2);
	border-bottom: 1px solid var(--line);
	font-size: .8rem;
	color: var(--muted);
}

.g-topbar .g-wrap { padding-block: .5rem; }

/* ------------------------------------------------------------------ Header */

.g-header {
	background: color-mix(in srgb, var(--paper) 88%, transparent);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s var(--ease), background .3s var(--ease);
}

body.has-sticky-header .g-header {
	position: sticky;
	top: 0;
	z-index: 120;
}

.g-header.is-stuck { border-bottom-color: var(--line); }

.g-header-inner {
	min-height: var(--head-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.g-brand { display: flex; flex-direction: column; gap: .18rem; }

.g-brand-name {
	font-family: var(--sans);
	font-weight: 500;
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	letter-spacing: .16em;
	text-transform: uppercase;
	line-height: 1;
}

.g-brand-sub {
	font-size: .68rem;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--muted);
	line-height: 1;
}

/* ------------------------------------------------------------------ Navigation */

.g-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: clamp(1.1rem, 2.4vw, 2.4rem);
}

.g-nav li { position: relative; }

.g-nav a,
.g-nav .mod-menu__heading,
.g-nav .nav-header,
.g-nav li > span {
	display: inline-block;
	font-size: .74rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--anthracite);
	padding: .5rem 0;
	position: relative;
	white-space: nowrap;
}

/* Überschriften im Menü ("Menu Heading") rendert Joomla als <span>.
   Sie sollen aussehen wie die übrigen Menüpunkte. */
.g-nav .mod-menu__heading,
.g-nav .nav-header,
.g-nav li > span {
	font-size: .74rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--anthracite);
	font-weight: 400;
	cursor: default;
	margin: 0;
}

.g-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: .15rem;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--ease);
}

.g-nav a:hover::after,
.g-nav .current > a::after,
.g-nav .active > a::after { transform: scaleX(1); }

.g-nav .current > a,
.g-nav .active > a { color: var(--ink); }

/* Untermenü (Desktop) */

.g-nav ul ul {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translate(-50%, 8px);
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	min-width: 210px;
	padding: .7rem 0;
	background: var(--paper);
	border: 1px solid var(--line);
	box-shadow: 0 18px 40px -24px rgba(20, 19, 15, .4);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .25s var(--ease), transform .25s var(--ease);
	z-index: 130;
}

.g-nav li:hover > ul,
.g-nav li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.g-nav ul ul li { width: 100%; }

.g-nav ul ul a {
	display: block;
	width: 100%;
	padding: .5rem 1.4rem;
	letter-spacing: .12em;
}

.g-nav ul ul a::after { display: none; }

.g-nav ul ul a:hover { background: var(--paper-2); }

/* Burger */

.g-burger {
	display: none;
	position: relative;
	width: 40px;
	height: 40px;
	border: 0;
	background: none;
	cursor: pointer;
	padding: 0;
	z-index: 140;
}

.g-burger span {
	position: absolute;
	left: 8px;
	right: 8px;
	height: 1px;
	background: var(--ink);
	transition: transform .3s var(--ease), opacity .3s var(--ease);
}

.g-burger span:nth-child(1) { top: 16px; }
.g-burger span:nth-child(2) { top: 23px; }

.g-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.g-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ------------------------------------------------------------------ Hero */

.g-hero {
	position: relative;
	background: var(--paper-2);
}

.g-hero-media {
	position: relative;
	height: clamp(380px, 74vh, 760px);
	overflow: hidden;
}

.g-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.03);
	transition: transform 1.6s var(--ease);
}

/* Der Verlauf sichert die Lesbarkeit des Namens – unabhängig davon,
   wie hell oder dunkel das Werk an dieser Stelle ist. */
.g-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(16,15,12,.34) 0%, rgba(16,15,12,.10) 34%, rgba(16,15,12,.55) 68%, rgba(16,15,12,.80) 100%);
}

.g-hero:not(.g-hero-split) .g-hero-body-inner {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.g-hero:not(.g-hero-split) .g-hero-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: clamp(2.2rem, 6vh, 5rem);
	color: #fff;
	z-index: 2;
}

.g-hero-plain .g-hero-body,
.g-hero-fallback .g-hero-body {
	position: static;
	color: var(--ink);
	padding-block: clamp(3rem, 10vh, 7rem);
}

/* Fehlt das Startbild, wird der Kopfbereich rein typografisch –
   statt einer dunklen Fläche mit unlesbarem Text darauf. */
.g-hero-fallback { background: var(--paper); border-bottom: 1px solid var(--line); }

.g-hero-fallback .g-hero-media { display: none; }

.g-hero-fallback .g-hero-title,
.g-hero-fallback .g-hero-text { text-shadow: none; }

.g-hero-fallback .g-btn:hover { background: var(--ink); color: var(--paper); }

/* Bilder, die der Server nicht liefert, verschwinden lautlos,
   statt als leerer Rahmen oder Platzhaltersymbol stehen zu bleiben. */
.g-broken-image { display: none !important; }

.g-work.is-broken { display: none !important; }

/* Weiße Schrift nur im Vollbild-Kopf, wo sie auf dem Werk steht. */
.g-hero:not(.g-hero-plain):not(.g-hero-fallback):not(.g-hero-split) .g-hero-body,
.g-hero:not(.g-hero-plain):not(.g-hero-fallback):not(.g-hero-split) .g-hero-title,
.g-hero:not(.g-hero-plain):not(.g-hero-fallback):not(.g-hero-split) .g-hero-text { color: #fff; }

.g-hero-title {
	font-size: clamp(2rem, 5.4vw, 4.4rem);
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin: 0 0 .4rem;
	text-shadow: 0 2px 34px rgba(0, 0, 0, .45);
}

.g-hero-text {
	max-width: 46ch;
	font-size: clamp(1rem, 1.25vw, 1.12rem);
	line-height: 1.65;
	margin: 0 0 1.6rem;
	color: inherit;
	opacity: .94;
	text-shadow: 0 1px 18px rgba(0, 0, 0, .3);
}

.g-btn {
	display: inline-block;
	font-size: .74rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	padding: .95rem 1.9rem;
	border: 1px solid currentColor;
	transition: background .3s var(--ease), color .3s var(--ease);
}

.g-hero .g-btn:hover { background: #fff; color: var(--ink); }

.g-hero-plain .g-btn:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------ Werkauswahl */

.g-featured { padding-block: clamp(3.5rem, 9vw, 7.5rem); }

.g-section-title {
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	text-align: center;
	margin: 0 0 clamp(2rem, 4vw, 3.4rem);
	position: relative;
	padding-bottom: 1.2rem;
}

.g-section-title::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 42px;
	height: 1px;
	background: var(--line-strong);
	transform: translateX(-50%);
}

.g-featured-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(var(--tile), 100%), 1fr));
	gap: var(--gap);
	align-items: start;
}

.g-work { display: block; }

.g-work-frame {
	display: block;
	overflow: hidden;
	background: var(--paper-2);
}

.g-work-frame img {
	width: 100%;
	transition: transform .9s var(--ease), filter .5s var(--ease);
}

a.g-work:hover .g-work-frame img { transform: scale(1.035); }

.g-work-caption { display: block; margin-top: .9rem; }

.g-work-title {
	display: block;
	font-size: .78rem;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--anthracite);
}

.g-work-meta {
	display: block;
	margin-top: .25rem;
	font-size: .78rem;
	color: var(--muted);
	letter-spacing: .01em;
}

a.g-work:hover .g-work-title { color: var(--ink); }

/* Sanftes Einblenden */

.g-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.g-reveal.is-in { opacity: 1; transform: none; }


/* ------------------------------------------------------------------ Hero, geteilt
   Werk rechts, Name und Text links auf Papierweiß. Das Bild wird
   dabei deutlich weniger beschnitten als im Vollbild.
   ------------------------------------------------------------------ */

.g-hero-split { background: var(--paper); border-bottom: 1px solid var(--line); }

.g-hero-split .g-hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: clamp(440px, 76vh, 740px);
	align-items: stretch;
}

.g-hero-split .g-hero-media {
	order: 2;
	height: auto;
	min-height: 0;
}

.g-hero-split .g-hero-media::after { display: none; }

.g-hero-split .g-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: none;
}

.g-hero-split .g-hero-body {
	order: 1;
	position: static;
	display: flex;
	align-items: center;
	color: var(--ink);
	padding-block: clamp(3rem, 8vw, 5.5rem);
	padding-inline: var(--gutter) clamp(1.6rem, 4vw, 3.5rem);
	padding-inline-start: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}

.g-hero-split .g-hero-body-inner { max-width: 34rem; }

.g-hero-split .g-hero-title {
	color: var(--ink);
	text-shadow: none;
	font-size: clamp(1.8rem, 3.6vw, 3.1rem);
	margin-bottom: 1.1rem;
}

.g-hero-split .g-hero-text {
	color: var(--muted);
	text-shadow: none;
	font-size: 1.02rem;
	max-width: 40ch;
	margin-bottom: 2rem;
}

.g-hero-split .g-btn { border-color: var(--ink); color: var(--ink); }

.g-hero-split .g-btn:hover { background: var(--ink); color: var(--paper); }

@media (max-width: 900px) {
	.g-hero-split .g-hero-inner {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.g-hero-split .g-hero-media {
		order: 1;
		height: clamp(300px, 52vh, 460px);
	}

	.g-hero-split .g-hero-body {
		order: 2;
		padding: clamp(2.2rem, 8vw, 3.5rem) var(--gutter);
	}
}

/* ------------------------------------------------------------------ Motive */

.g-highlights {
	padding-block: clamp(3rem, 7vw, 5.5rem);
	border-top: 1px solid var(--line);
	background: var(--paper-2);
}

.g-motifs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .55rem .9rem;
	max-width: 74ch;
	margin-inline: auto;
}

.g-motifs li {
	font-size: .82rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	padding: .42rem .95rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--paper);
	transition: color .3s var(--ease), border-color .3s var(--ease);
}

.g-motifs li:hover { color: var(--ink); border-color: var(--ink); }

/* ------------------------------------------------------------------ Galerie (Template-eigen) */

.g-album { margin-bottom: clamp(3.5rem, 8vw, 6.5rem); }

.g-album:last-of-type { margin-bottom: 0; }

.g-album-intro {
	max-width: 62ch;
	margin: -.6rem auto clamp(2rem, 4vw, 3rem);
	text-align: center;
	color: var(--muted);
	font-size: 1.02rem;
}

.g-album-empty { text-align: center; color: var(--muted); font-style: italic; }

.g-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(var(--tile), 100%), 1fr));
	column-gap: var(--gap);
	row-gap: var(--gap);
	align-items: start;
}

.g-gallery-grid .g-work-frame { background: var(--paper-2); }

.g-album-more {
	margin-top: clamp(3rem, 7vw, 5rem);
	padding-top: clamp(2rem, 5vw, 3.5rem);
	border-top: 1px solid var(--line);
	text-align: center;
}

.g-album-more .g-section-title { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }

.g-album-more-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.g-album-more .g-btn:hover { background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------------ Ausstellung */

.g-exhibit {
	border-top: 1px solid var(--line);
	padding-block: clamp(3rem, 7vw, 5rem);
}

.g-exhibit-inner { max-width: 60ch; margin-inline: auto; text-align: center; }

.g-exhibit-when {
	font-size: .72rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: .7rem;
}

.g-exhibit-title {
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	margin-bottom: .7rem;
}

.g-exhibit-text { color: var(--muted); margin-bottom: 1.4rem; }

.g-exhibit-link {
	font-size: .74rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--line-strong);
	padding-bottom: .3rem;
	transition: border-color .3s var(--ease);
}

.g-exhibit-link:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ Hauptbereich */

.g-main { padding-block: clamp(2.5rem, 6vw, 5.5rem); }

body.is-home .g-main:empty { padding: 0; }

.g-main-inner { display: block; }

body.has-sidebar .g-main-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
}

.g-content { min-width: 0; }

.g-sidebar {
	font-size: .92rem;
	color: var(--muted);
	border-left: 1px solid var(--line);
	padding-left: clamp(1.2rem, 2.5vw, 2rem);
}

/* Joomla-Seitentitel */

.g-content .page-header {
	margin: 0 0 clamp(1.6rem, 4vw, 3rem);
	text-align: center;
}

.g-content .page-header h1,
.g-content .page-header h2 {
	font-size: clamp(1.9rem, 4vw, 3rem);
	letter-spacing: .01em;
	margin: 0;
}

.g-content .page-header::after {
	content: "";
	display: block;
	width: 42px;
	height: 1px;
	background: var(--line-strong);
	margin: 1.3rem auto 0;
}

/* Joomla-Systemmeldungen */

joomla-alert { display: block; margin-bottom: 1.5rem; }

/* ------------------------------------------------------------------ Galerie
   SP Easy Image Gallery – Markup wird zu einem ruhigen Raster umgebaut.
   ------------------------------------------------------------------ */

.speasyimagegallery-album-description {
	text-align: center;
	max-width: 60ch;
	margin: -1rem auto clamp(2rem, 4vw, 3.2rem);
	color: var(--muted);
	font-size: 1.02rem;
}

.speasyimagegallery-album-description p { margin: 0; }

.speasyimagegallery-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(var(--tile), 100%), 1fr));
	column-gap: var(--gap);
	row-gap: var(--gap);
	align-items: start;
}

/* Bootstrap-artige Zwischenebenen auflösen */
.speasyimagegallery-gallery > .speasyimagegallery-row,
.speasyimagegallery-gallery [class*="speasyimagegallery-col-"] {
	display: contents;
}

.speasyimagegallery-gallery::after,
.speasyimagegallery-row::after { content: none; }

.speasyimagegallery-gallery-item {
	display: block;
	position: relative;
	width: 100%;
	margin: 0;
	background: none;
	border: 0;
	padding: 0;
	overflow: visible;
}

.speasyimagegallery-gallery-item > div {
	position: relative;
	overflow: hidden;
	background: var(--paper-2);
}

.speasyimagegallery-gallery-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 1s var(--ease), filter .6s var(--ease);
}

.speasyimagegallery-gallery-item:hover img {
	transform: scale(1.04);
	filter: brightness(.94);
}

/* Bildunterschrift */

.speasyimagegallery-gallery-item-content {
	position: absolute;
	inset: auto 0 0 0;
	padding: 1.4rem 1.2rem 1rem;
	background: linear-gradient(0deg, rgba(18,17,13,.72), rgba(18,17,13,0));
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .4s var(--ease), transform .4s var(--ease);
	text-align: left;
}

.speasyimagegallery-gallery-item:hover .speasyimagegallery-gallery-item-content,
.speasyimagegallery-gallery-item:focus-visible .speasyimagegallery-gallery-item-content {
	opacity: 1;
	transform: none;
}

.speasyimagegallery-gallery-item-title {
	display: block;
	color: #fff;
	font-size: .76rem;
	letter-spacing: .15em;
	text-transform: uppercase;
	line-height: 1.4;
}

.speasyimagegallery-gallery-item-description { display: none; }

/* Masonry (per JS aktiviert) */

.speasyimagegallery-gallery.g-masonry,
.g-gallery-grid.g-masonry,
.g-featured-grid.g-masonry {
	grid-auto-rows: 2px;
	row-gap: 0;
	align-items: stretch;
}

/* Albenübersicht */

.speasyimagegallery-albums {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
	gap: var(--gap);
}

.speasyimagegallery-albums [class*="speasyimagegallery-col-"],
.speasyimagegallery-albums > .speasyimagegallery-row { display: contents; }

.speasyimagegallery-album-item { display: block; overflow: hidden; }

.speasyimagegallery-album-item img { width: 100%; transition: transform 1s var(--ease); }

.speasyimagegallery-album-item:hover img { transform: scale(1.04); }

.speasyimagegallery-album-item-title {
	display: block;
	margin-top: .9rem;
	font-family: var(--serif);
	font-size: 1.2rem;
}

.speasyimagegallery-album-item-count {
	display: block;
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ------------------------------------------------------------------ Lightbox */

.g-lb {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(17, 16, 13, .96);
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s var(--ease), visibility .35s var(--ease);
}

.g-lb.is-open { opacity: 1; visibility: visible; }

.g-lb-stage {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(3rem, 7vh, 5.5rem) clamp(1rem, 7vw, 6rem) 1rem;
	min-height: 0;
}

.g-lb-stage img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
	opacity: 0;
	transition: opacity .4s var(--ease);
}

.g-lb-stage img.is-ready { opacity: 1; }

.g-lb-bar {
	flex: 0 0 auto;
	color: #EDEAE3;
	text-align: center;
	padding: 0 clamp(1rem, 7vw, 6rem) clamp(1.6rem, 4vh, 2.6rem);
}

.g-lb .g-lb-title {
	font-family: var(--sans);
	font-weight: 500;
	font-size: clamp(1.05rem, 2vw, 1.4rem);
	margin: 0 0 .3rem;
	color: #fff;
}

.g-lb .g-lb-desc {
	font-size: .85rem;
	line-height: 1.6;
	color: #B4AFA4;
	max-width: 62ch;
	margin: 0 auto;
}

.g-lb-count {
	display: block;
	margin-top: .8rem;
	font-size: .7rem;
	letter-spacing: .22em;
	color: #7E796F;
}

.g-lb-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 56px;
	height: 56px;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
	opacity: .6;
	transition: opacity .25s var(--ease);
	z-index: 3;
}

.g-lb-btn:hover { opacity: 1; }

.g-lb-btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 15px;
	height: 15px;
	border-left: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
}

.g-lb-prev { left: clamp(.3rem, 2vw, 1.6rem); }
.g-lb-next { right: clamp(.3rem, 2vw, 1.6rem); }

.g-lb-prev::before { transform: translate(-40%, -50%) rotate(45deg); }
.g-lb-next::before { transform: translate(-60%, -50%) rotate(-135deg); }

.g-lb-close {
	position: absolute;
	top: clamp(.6rem, 2vw, 1.4rem);
	right: clamp(.6rem, 2vw, 1.4rem);
	width: 52px;
	height: 52px;
	border: 0;
	background: none;
	color: #fff;
	cursor: pointer;
	opacity: .6;
	transition: opacity .25s var(--ease);
	z-index: 3;
}

.g-lb-close:hover { opacity: 1; }

.g-lb-close::before,
.g-lb-close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 1px;
	background: currentColor;
}

.g-lb-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.g-lb-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }

body.g-lb-open { overflow: hidden; }

/* ------------------------------------------------------------------ SP Page Builder zähmen
   Die migrierten Seiten bringen eigene Hintergrundfarben, Schriftgrößen
   und Textfarben mit – teils als Inline-Stil. Die werden hier
   konsequent neutralisiert, sonst bricht das Design auseinander.
   ------------------------------------------------------------------ */

.g-content .sppb-section,
.g-content .sppb-row,
.g-content .sppb-row-container,
.g-content .sppb-column,
.g-content .sppb-column-addons,
.g-content .sppb-addon-wrapper,
.g-content .sppb-addon {
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
}

.g-content .sppb-row-overlay { display: none !important; }

.g-content .sppb-addon-content,
.g-content .sppb-addon-content p,
.g-content .sppb-addon-content span,
.g-content .sppb-addon-content font,
.g-content .sppb-addon-content li,
.g-content .sppb-title-subheading {
	font-family: var(--sans) !important;
	font-size: 1.02rem !important;
	line-height: 1.75 !important;
	color: var(--ink) !important;
	letter-spacing: normal !important;
}

.g-content .sppb-addon-content strong,
.g-content .sppb-addon-content b { font-weight: 600 !important; }

.g-content .sppb-title-heading,
.g-content .sppb-addon-title,
.g-content .sppb-addon h1,
.g-content .sppb-addon h2,
.g-content .sppb-addon h3,
.g-content .sppb-addon h4 {
	color: var(--ink) !important;
	font-family: var(--serif) !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
}

.g-content .sppb-addon-content a { color: var(--accent) !important; text-decoration: underline; }

.g-content .sp-page-builder .page-content { padding: 0; }

.g-content .sppb-section { padding: clamp(1.2rem, 4vw, 3rem) 0; }

.g-content .sppb-row-container,
.g-content .sppb-container { max-width: 100%; padding-inline: 0; }

.g-content .sppb-section-title { margin-bottom: clamp(1.4rem, 3vw, 2.4rem); }

.g-content .sppb-title-heading {
	font-family: var(--serif);
	font-size: clamp(1.8rem, 3.6vw, 2.8rem);
	font-weight: 400;
	letter-spacing: .01em;
}

.g-content .sppb-title-subheading {
	font-family: var(--sans);
	font-size: 1.02rem;
	line-height: 1.7;
	color: var(--muted);
	max-width: 62ch;
	margin-inline: auto;
}

.g-content .sppb-addon-title {
	font-family: var(--serif);
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	font-weight: 400;
	margin-bottom: .8rem;
}

.g-content .sppb-addon-content { font-size: 1rem; line-height: 1.75; }

/* Inline-Schriftgrößen aus dem alten Editor neutralisieren */
.g-content .sppb-addon-content span[style*="font-size"] { font-size: inherit !important; }

.g-content .sppb-addon-single-image-container img { width: 100%; }

.g-content .sppb-empty-space { height: clamp(1rem, 3vw, 2.4rem) !important; }

.g-content .sppb-row { row-gap: var(--gap); }

/* ------------------------------------------------------------------ Vita
   Zwei Spalten: Porträt links, Text rechts, linksbündig gesetzt.
   Greift, sobald der Beitrag ein Bild in <figure class="g-vita-figure">
   oder als erstes Bild enthält.
   ------------------------------------------------------------------ */

.g-vita {
	display: grid;
	grid-template-columns: minmax(220px, 34%) 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	text-align: left;
	max-width: 1040px;
	margin-inline: auto;
}

.g-vita-figure { margin: 0; }

.g-vita-figure img { width: 100%; display: block; }

.g-vita-figure figcaption {
	margin-top: .7rem;
	font-size: .74rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}

.g-vita-body { text-align: left; max-width: 60ch; }

.g-vita-body h2,
.g-vita-body h3 { text-align: left; margin-bottom: 1.2rem; }

.g-vita-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .85rem;
}

.g-vita-list li {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	gap: 1rem;
	align-items: baseline;
	padding-bottom: .85rem;
	border-bottom: 1px solid var(--line);
}

.g-vita-list li:last-child { border-bottom: 0; }

.g-vita-year {
	font-size: .78rem;
	letter-spacing: .1em;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

@media (max-width: 780px) {
	.g-vita { grid-template-columns: 1fr; }

	.g-vita-figure { max-width: 320px; }

	.g-vita-list li { grid-template-columns: 1fr; gap: .15rem; }
}

/* ------------------------------------------------------------------ Kontakt
   Joomlas Kontaktkomponente in ruhiger, moderner Form.
   ------------------------------------------------------------------ */

.g-content .com-contact,
.g-content .contact { max-width: 1040px; margin-inline: auto; }

.g-content .com-contact__container,
.g-content .contact-form { text-align: left; }

.g-content .com-contact address,
.g-content .contact-address {
	font-style: normal;
	line-height: 1.9;
	color: var(--ink);
}

.g-content .com-contact dl,
.g-content .com-contact dt,
.g-content .com-contact dd { margin: 0; }

.g-content .com-contact dd { margin-bottom: .3rem; }

/* Formularfelder */

.g-content input[type="text"],
.g-content input[type="email"],
.g-content input[type="tel"],
.g-content input[type="url"],
.g-content textarea,
.g-content select {
	width: 100%;
	max-width: 100%;
	font-family: var(--sans);
	font-size: 1rem;
	color: var(--ink);
	background: var(--paper);
	border: 0;
	border-bottom: 1px solid var(--line-strong);
	border-radius: 0;
	padding: .8rem .1rem;
	transition: border-color .3s var(--ease);
	appearance: none;
}

.g-content textarea { min-height: 9rem; resize: vertical; line-height: 1.7; }

.g-content input:focus,
.g-content textarea:focus,
.g-content select:focus {
	outline: none;
	border-bottom-color: var(--ink);
}

.g-content label,
.g-content legend {
	display: block;
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: .35rem;
}

.g-content fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; }

.g-content .control-group,
.g-content .form-group { margin-bottom: 1.6rem; }

.g-content button,
.g-content .btn,
.g-content input[type="submit"] {
	display: inline-block;
	font-family: var(--sans);
	font-size: .74rem;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--ink);
	background: none;
	border: 1px solid var(--ink);
	border-radius: 0;
	padding: .95rem 1.9rem;
	cursor: pointer;
	transition: background .3s var(--ease), color .3s var(--ease);
}

.g-content button:hover,
.g-content .btn:hover,
.g-content input[type="submit"]:hover { background: var(--ink); color: var(--paper); }

/* Kontaktblock in zwei Spalten */

.g-kontakt {
	display: grid;
	grid-template-columns: minmax(220px, 32%) 1fr;
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: start;
	text-align: left;
	max-width: 1040px;
	margin-inline: auto;
}

.g-kontakt-adresse { font-style: normal; line-height: 1.95; }

.g-kontakt-label {
	display: block;
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: .5rem;
}

.g-kontakt-adresse + .g-kontakt-label { margin-top: 1.8rem; }

@media (max-width: 780px) {
	.g-kontakt { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ Fußbereich */

.g-footer {
	border-top: 1px solid var(--line);
	margin-top: clamp(3rem, 8vw, 6rem);
	padding-block: clamp(2.4rem, 6vw, 4rem);
	text-align: center;
	font-size: .9rem;
	color: var(--muted);
	background: var(--paper);
}

.g-footer-text { max-width: 60ch; margin: 0 auto 1.4rem; }

.g-footer-nav ul {
	list-style: none;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.6rem;
	margin: 0 0 1.4rem;
	padding: 0;
}

.g-footer-nav a {
	font-size: .72rem;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.g-footer-nav a:hover { color: var(--ink); }

.g-footer-note {
	margin: 0;
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--line-strong);
}

/* ------------------------------------------------------------------ Mobil */

@media (max-width: 900px) {
	:root { --head-h: 68px; }

	.g-burger { display: block; }

	/* Wichtig: backdrop-filter erzeugt einen Bezugsrahmen für
	   position:fixed. Ohne diese Zeilen bliebe das Vollbildmenü
	   in der Kopfleiste stecken. */
	.g-header {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: var(--paper);
	}

	.g-nav {
		position: fixed;
		inset: 0;
		background: var(--paper);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 5rem 2rem 3rem;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s var(--ease);
		z-index: 130;
		overflow-y: auto;
	}

	.g-nav.is-open { opacity: 1; visibility: visible; transform: none; }

	.g-nav ul { flex-direction: column; gap: .2rem; width: 100%; }

	.g-nav > ul > li { text-align: center; width: 100%; }

	.g-nav a { font-size: 1rem; letter-spacing: .16em; padding: .75rem 0; }

	/* Überschriften im Menü ("Menu Heading") rendert Joomla als <span>.
   Sie sollen aussehen wie die übrigen Menüpunkte. */
.g-nav .mod-menu__heading,
.g-nav .nav-header,
.g-nav li > span {
	font-size: .74rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--anthracite);
	font-weight: 400;
	cursor: default;
	margin: 0;
}

.g-nav a::after { display: none; }

	.g-nav ul ul {
		position: static;
		transform: none;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		border: 0;
		box-shadow: none;
		background: none;
		min-width: 0;
		padding: 0 0 .6rem;
		display: flex;
	}

	.g-nav ul ul a {
		text-align: center;
		font-size: .82rem;
		color: var(--muted);
		padding: .45rem 0;
	}

	.g-nav ul ul a:hover { background: none; color: var(--ink); }

	body.has-sidebar .g-main-inner { grid-template-columns: 1fr; }

	.g-sidebar { border-left: 0; border-top: 1px solid var(--line); padding: 2rem 0 0; }

	.speasyimagegallery-gallery-item-content { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
	:root { --tile: 100%; }

	body.g-site { font-size: 16px; }

	.g-hero-media { height: clamp(320px, 58vh, 460px); }

	.g-lb-btn { width: 44px; height: 44px; }
}


/* ------------------------------------------------------------------ Mobil: Lesbarkeit & Tippziele
   Auf kleinen Bildschirmen werden die feinen Auszeichnungen etwas
   größer gesetzt, und alles Antippbare bekommt genug Fläche.
   ------------------------------------------------------------------ */

@media (max-width: 700px) {
	.g-brand-sub { font-size: .74rem; letter-spacing: .18em; }

	.g-brand { padding-block: .35rem; }

	.g-btn { font-size: .8rem; padding: 1rem 1.9rem; }

	.g-exhibit-when { font-size: .78rem; letter-spacing: .16em; }

	.g-exhibit-link { font-size: .82rem; padding: .7rem 0 .5rem; }

	.g-footer-note { font-size: .76rem; }

	.g-work-title { font-size: .82rem; }

	.g-work-meta { font-size: .84rem; }

	.g-motifs li { font-size: .86rem; padding: .5rem 1rem; }

	.g-lb-count { font-size: .76rem; }

	/* Formularfelder bei 16px halten – darunter zoomt iOS beim Tippen
	   automatisch in die Seite hinein. */
	.g-content input[type="text"],
	.g-content input[type="email"],
	.g-content input[type="tel"],
	.g-content textarea,
	.g-content select { font-size: 16px; }

	.g-content button,
	.g-content .btn,
	.g-content input[type="submit"] { font-size: .82rem; padding: 1rem 1.9rem; }
}

/* ------------------------------------------------------------------ Bewegung reduzieren */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }

	body.g-site *,
	body.g-site *::before,
	body.g-site *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}

	.g-reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ Druck */

@media print {
	.g-header, .g-footer, .g-nav, .g-burger, .g-lb, .g-sidebar { display: none !important; }

	body.g-site { font-size: 11pt; color: #000; background: #fff; }
}

/* ------------------------------------------------------------------ Kontakt: Zusatz */

.g-kontakt-intro {
	max-width: 46ch;
	color: var(--muted);
	margin-bottom: 2.2rem;
}

.g-kontakt-form { max-width: 34rem; }

.g-kontakt-hint {
	margin-top: 1.1rem;
	font-size: .8rem;
	color: var(--muted);
}

.g-kontakt-adresse a { border-bottom: 1px solid var(--line-strong); }

.g-kontakt-adresse a:hover { border-color: var(--ink); }

/* ------------------------------------------------------------------ Rechtstexte */

.g-legal {
	max-width: 68ch;
	margin-inline: auto;
	text-align: left;
}

.g-legal h2 {
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
	font-weight: 500;
	letter-spacing: .01em;
	margin: 2.6rem 0 .7rem;
	padding-bottom: .5rem;
	border-bottom: 1px solid var(--line);
}

.g-legal h2:first-child { margin-top: 0; }

.g-legal p { color: var(--anthracite); }

.g-footer-legal {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1.6rem;
	margin-bottom: 1.2rem;
}

.g-footer-legal a {
	font-size: .74rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
	padding-block: .35rem;
}

.g-footer-legal a:hover { color: var(--ink); }

/* ------------------------------------------------------------------ Urheberrechtshinweis */

.g-copy-notice {
	margin: clamp(2rem, 5vw, 3.4rem) auto 0;
	max-width: 62ch;
	text-align: center;
	font-size: .8rem;
	line-height: 1.6;
	color: var(--muted);
}

/* Bilder lassen sich nicht mehr versehentlich aus der Seite ziehen.
   Das ist eine Hürde, kein Schutz – der liegt im Urheberrecht. */
body.g-site .g-work img,
body.g-site .g-hero-media img {
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
}
