/* ==========================================================================
   PROSPECTUM – Entwurf 1 „Nocturne“
   Dunkles Kirchenschiff, Kerzenlicht, Blattgold. Edel und zurückhaltend.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap");

:root {
	--wrap: 1040px;
	--bg: #0e0c09;
	--bg-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(198,161,91,.10), transparent 70%);
	--surface: #16130f;
	--surface-2: #1e1a14;
	--text: #e3d9c4;
	--muted: #a39780;
	--heading: #f2e7cf;
	--accent: #c6a15b;
	--accent-contrast: #15120d;
	--link: #d8b673;
	--rule: rgba(198,161,91,.28);
	--focus-ring: rgba(198,161,91,.25);
	--input-bg: #110f0b;
	--radius: 2px;

	--font-display: "Cormorant Garamond", "Garamond", Georgia, serif;
	--font-body: "EB Garamond", "Garamond", Georgia, serif;
	--font-nav: "Cormorant Garamond", "Garamond", Georgia, serif;
	--body-size: 19px;
	--line-height: 1.7;
	--head-weight: 500;
	--head-tracking: .01em;
	--h4-size: 2.3em;

	--nav-bg: #0e0c09;
	--nav-text: #d6c9ad;
	--nav-hover: #e2bd72;
	--nav-hover-bg: transparent;
	--nav-size: 15px;
	--nav-weight: 600;
	--nav-tracking: .2em;
	--nav-transform: uppercase;
	--nav-pad: 18px 15px;
	--icon-filter: invert(85%) sepia(20%) saturate(300%);
	--home-icon-filter: invert(74%) sepia(38%) saturate(520%) hue-rotate(2deg) brightness(92%);

	--menu-bg: #1a1611;
	--menu-text: #e3d9c4;
	--menu-hover: rgba(198,161,91,.12);

	--footer-bg: #0b0907;
	--footer-text: #7f7564;
	--footer-link: #b8ab90;
}
/* ==========================================================================
   Gemeinsame Struktur – nutzt die Theme-Variablen aus :root
   ========================================================================== */

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

html { background: var(--bg); }

body {
	width: auto;
	margin: 0;
	padding: 0 16px 48px;
	background: var(--bg-image, none), var(--bg);
	background-attachment: fixed;
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--body-size);
	line-height: var(--line-height, 1.65);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-kerning: normal;
}

header, nav, section, footer {
	width: auto;
	max-width: var(--wrap);
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Banner ---------- */
header {
	height: auto;
	aspect-ratio: 900 / 80;
	margin-top: var(--top-gap, 24px);
	margin-bottom: 0;
	background-image: url("/media/layout/banner.jpg");
	background-size: cover;
	background-position: center;
}

/* ---------- Navigation ---------- */
nav {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	flex-wrap: wrap;
	margin: 0 auto;
	padding: 0 14px;
	background: var(--nav-bg);
	color: var(--nav-text);
	font-family: var(--font-nav);
	font-weight: var(--nav-weight, 500);
}

nav ul {
	display: flex;
	align-items: stretch;
	margin: 0 !important;
	padding: 0;
}

nav ul li {
	display: flex;
	align-items: center;
	position: relative;
	list-style: none;
	transition: background-color .25s, color .25s;
}

nav > ul > li > a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: var(--nav-pad, 16px 14px);
	color: var(--nav-text);
	font-size: var(--nav-size);
	line-height: 1;
	letter-spacing: var(--nav-tracking);
	text-transform: var(--nav-transform);
	text-decoration: none;
	transition: color .25s;
}

nav > ul > li > img { margin: 0 12px; }

nav > ul > li:hover { background: var(--nav-hover-bg); }
nav > ul > li:hover > a { color: var(--nav-hover); }

nav img[src*="Home_Icon"] {
	width: 18px !important;
	height: 18px !important;
	filter: var(--home-icon-filter, none);
	opacity: .9;
}

nav img[src*="flags"] {
	width: 22px;
	height: auto;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}

/* Dropdowns (myPROSPECTUM, Sprache) */
nav > ul > li > div {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 190px;
	margin: 0;
	padding: 6px 0;
	background: var(--menu-bg);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	box-shadow: 0 14px 34px rgba(0,0,0,.22);
	opacity: 0;
	visibility: hidden;
	z-index: 100;
}

nav > ul > li:hover > div { display: block; opacity: 1; visibility: visible; }
nav > ul > li > div ul { display: block; }
nav > ul > li > div ul > li { display: block; }

nav > ul > li > div ul > li > a {
	display: block;
	padding: 9px 18px;
	color: var(--menu-text);
	font-size: var(--nav-size);
	letter-spacing: var(--nav-tracking);
	text-transform: var(--nav-transform);
	text-decoration: none;
	white-space: nowrap;
}

nav > ul > li > div ul > li:hover > a { background: var(--menu-hover); }

/* ---------- Inhaltsbereich ---------- */
section {
	height: auto;
	margin-top: 0;
	margin-bottom: 0;
	padding: var(--section-pad, 44px 56px 52px);
	background: var(--surface);
}

/* Orgel-Teaser auf der Startseite */
section > p.centered:first-child {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--teaser-gap, 18px);
	margin: 0 0 44px;
}

section > p.centered:first-child a {
	display: block;
	overflow: hidden;
	line-height: 0;
}

section > p.centered:first-child img {
	display: block;
	height: 260px;
	width: auto;
	transition: transform .6s ease, filter .4s ease, box-shadow .4s ease;
}

img.link:hover { opacity: 1; filter: none; }
section > p.centered:first-child a:hover img { transform: scale(1.035); }

/* Typografie */
h1, h2, h3, h4 {
	margin: 0 0 .6em;
	font-family: var(--font-display);
	font-weight: var(--head-weight);
	letter-spacing: var(--head-tracking, 0);
	line-height: 1.2;
	color: var(--heading);
}

h2 { font-size: 2.1em; margin-left: 0; }
h3 { font-size: 1.6em; margin-left: 0; }
h4 { font-size: var(--h4-size, 2em); margin-left: 0; margin-top: 0; }
h4.organ { margin: 0 0 1em; }
h4 b { font-weight: inherit; font-style: italic; }

p {
	margin: 0 0 1.1em;
	text-align: left;
	hyphens: auto;
	-webkit-hyphens: auto;
}

p.centered { margin: 0; text-align: center; }
p.indented { padding-left: 0; max-width: 68ch; }

section a { color: var(--link); text-decoration-color: var(--accent); text-underline-offset: 3px; }

a.regular {
	padding: 0;
	background: none;
	color: var(--link);
	font-size: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--accent);
	transition: color .2s, border-color .2s;
}
a.regular:hover { background: none; color: var(--accent); border-bottom-color: currentColor; }

hr {
	height: 1px;
	margin: 2.6em 0 2em;
	border: 0;
	background: var(--rule);
	color: var(--rule);
}

/* „Latest Changes:“ */
section hr + p {
	margin-bottom: .5em;
	font-family: var(--font-nav);
	font-size: .78em;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--muted);
}

section ul { padding-left: 1.2em; }
section ul li { margin-bottom: .3em; }
section ul li::marker { color: var(--accent); }

img { border: none; vertical-align: middle; margin: 0; }
img.flag { width: 22px; height: auto; }

/* ---------- Footer ---------- */
footer {
	margin-top: 0;
	margin-bottom: 0;
	padding: 30px 20px 34px;
	background: var(--footer-bg);
	color: var(--footer-text);
	font-size: 13px;
	text-align: center;
}

footer > div { height: auto !important; margin: 0 0 12px !important; }
footer p.centered { margin: 0; }

a.footer {
	height: auto;
	padding: 0 12px;
	background: none;
	color: var(--footer-link);
	font-family: var(--font-nav);
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	text-decoration: none;
}
a.footer:hover { background: none; color: var(--accent); }

/* ---------- Orgel-Übersicht (Tabellen als Karten) ---------- */
table.organstable {
	width: 100%;
	margin: 0 0 32px;
	border-collapse: separate;
}

table.organstable tbody {
	display: grid;
	/* 3rd track = 150px image + 10px gap (margin-left below) */
	grid-template-columns: 150px minmax(0, 1fr) 160px minmax(0, 1fr);
	row-gap: 20px;
}

table.organstable tr { display: contents; }

/* Image fills the whole card height, even when the text wraps to more lines */
td.organdescriptionimage {
	position: relative;
	width: auto;
	height: auto;
	min-height: 150px;
	padding: 0;
	background: var(--surface-2);
	line-height: 0;
	overflow: hidden;
}

td.organdescriptionimage img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s ease;
}
td.organdescriptionimage a:hover img { transform: scale(1.05); }

td.organdescriptiontext {
	width: auto;
	height: auto;
	padding: 18px 22px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: .9em;
	line-height: 1.55;
}

td.organdescriptiontext:nth-child(2) { margin-right: 10px; }
td.organdescriptiontext:nth-child(4) { margin-right: 0; }
td.organdescriptionimage:nth-child(3) { margin-left: 10px; }

td.organdescriptiontext::first-line,
td.organdescriptiontext > a::first-line {
	font-family: var(--font-display);
	font-size: 1.2em;
	color: var(--heading);
}

/* CARD-1: whole card clickable (02_00.php), link fills the text cell */
td.organdescriptiontext.organcard-link { padding: 0; }
td.organdescriptiontext.organcard-link > a {
	display: block;
	height: 100%;
	padding: 18px 22px;
	color: inherit;
	text-decoration: none;
}
td.organcard-link { transition: background-color .3s, border-color .3s; }
/* hover/focus on either cell highlights both cells of the card */
td.organdescriptiontext.organcard-link:hover,
td.organdescriptiontext.organcard-link:focus-within,
td.organdescriptionimage.organcard-link:hover + td.organdescriptiontext {
	background: #26201a;
	border-color: var(--accent);
}
td.organdescriptionimage.organcard-link:hover,
td.organdescriptionimage.organcard-link:has(+ td.organdescriptiontext:hover),
td.organdescriptionimage.organcard-link:has(+ td.organdescriptiontext:focus-within) { border-color: var(--accent); }
td.organdescriptionimage.organcard-link:has(+ td.organdescriptiontext:hover) img,
td.organdescriptionimage.organcard-link:has(+ td.organdescriptiontext:focus-within) img { transform: scale(1.05); }
td.organdescriptiontext.organcard-link > a:focus-visible { outline: 1px solid var(--accent); outline-offset: -4px; }

/* ---------- Orgel-Detailseiten ---------- */

/* GALLERY-1: main picture and picture galleries (organlayout.php) */
img.psp-mainimage {
	max-width: 100%;
	height: auto;
	padding: 6px;
	background: var(--surface-2);
	border: 1px solid var(--rule);
	box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.psp-gallery {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin: 6px 0 0;
}
.psp-gallery + .psp-gallery { margin-top: 16px; }   /* next group (was a spacer image) */

.psp-gallery > a {
	display: block;
	padding: 5px;
	background: var(--surface-2);
	border: 1px solid var(--rule);
	line-height: 0;
	text-decoration: none;
	transition: border-color .3s, box-shadow .3s, transform .3s;
}
.psp-gallery-img { display: block; overflow: hidden; }
.psp-gallery img {
	display: block;
	height: 150px;
	width: auto;
	max-width: 100%;
	object-fit: cover;
	filter: saturate(.9) brightness(.94);
	transition: transform .6s ease, filter .4s ease;
}
.psp-gallery > a:hover,
.psp-gallery > a:focus-visible {
	border-color: var(--accent);
	box-shadow: 0 10px 26px rgba(0,0,0,.4);
	transform: translateY(-2px);
	outline: none;
}
.psp-gallery > a:hover img,
.psp-gallery > a:focus-visible img { transform: scale(1.05); filter: none; }

@media (max-width: 760px) {
	.psp-gallery { gap: 10px; }
	.psp-gallery img { height: 104px; }
}

/* GALLERY-2: picture viewer (lightbox.js), replaces fancyBox */
html.psp-lightbox-open { overflow: hidden; }
.psp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 56px 72px;
	background: rgba(8,7,5,.92);
	animation: psp-lightbox-in .2s ease;
	touch-action: pinch-zoom;          /* swipes browse the pictures, no browser back gesture */
	overscroll-behavior: contain;
}
.psp-lightbox[hidden] { display: none; }
.psp-lightbox-figure {
	margin: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	max-height: 100%;
	min-width: 0;
	min-height: 0;
}
.psp-lightbox-img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 150px);
	width: auto;
	height: auto;
	padding: 6px;
	background: var(--surface-2);
	border: 1px solid var(--rule);
	box-shadow: 0 24px 60px rgba(0,0,0,.6);
	transition: opacity .2s ease;
}
.psp-lightbox.is-loading .psp-lightbox-img { opacity: 0; }
.psp-lightbox-caption {
	margin-top: 12px;
	color: var(--text);
	font-family: var(--font-display);
	font-size: 20px;
	text-align: center;
}
.psp-lightbox-counter {
	position: absolute;
	top: 16px;
	left: 20px;
	color: var(--muted);
	font-family: var(--font-nav);
	font-size: 14px;
	letter-spacing: .15em;
}
.psp-lightbox button,
.psp-pano button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: var(--heading);
	background: rgba(22,19,15,.7);
	border: 1px solid var(--rule);
	border-radius: 50%;
	font-family: var(--font-display);
	line-height: 1;
	cursor: pointer;
	transition: border-color .2s, color .2s, background .2s;
}
.psp-lightbox button:hover,
.psp-lightbox button:focus-visible,
.psp-pano button:hover,
.psp-pano button:focus-visible {
	color: var(--accent);
	border-color: var(--accent);
	background: rgba(22,19,15,.95);
	outline: none;
	box-shadow: 0 0 0 3px var(--focus-ring);
}
.psp-lightbox button[hidden],
.psp-pano button[hidden] { display: none; }
.psp-lightbox-close { top: 10px; right: 12px; font-size: 32px; }
.psp-lightbox-prev,
.psp-lightbox-next { top: 50%; margin-top: -24px; font-size: 40px; }
.psp-lightbox .psp-lightbox-prev,
.psp-lightbox .psp-lightbox-next { padding-bottom: 4px; }
.psp-lightbox-prev { left: 12px; }
.psp-lightbox-next { right: 12px; }
.psp-lightbox-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 36px;
	height: 36px;
	margin: -18px 0 0 -18px;
	border: 2px solid var(--rule);
	border-top-color: var(--accent);
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	animation: psp-lightbox-spin .8s linear infinite;
}
.psp-lightbox.is-loading .psp-lightbox-spinner,
.psp-pano.is-loading .psp-lightbox-spinner { opacity: 1; transition: opacity .2s .15s; }
@keyframes psp-lightbox-in { from { opacity: 0; } }
@keyframes psp-lightbox-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
	.psp-lightbox { padding: 56px 8px 72px; }
	.psp-lightbox-img { max-height: calc(100vh - 170px); padding: 3px; }
	.psp-lightbox-caption { font-size: 17px; }
	.psp-lightbox-prev,
	.psp-lightbox-next { top: auto; bottom: 12px; margin-top: 0; }
	.psp-lightbox-prev { left: calc(50% - 60px); }
	.psp-lightbox-next { right: calc(50% - 60px); }
}
@media (prefers-reduced-motion: reduce) {
	.psp-lightbox, .psp-lightbox-img { animation: none; transition: none; }
}

/* PANO-1: 360° panorama viewer (panorama.js), replaces KRPANO (Flash) */
.psp-pano {
	position: fixed;
	inset: 0;
	z-index: 10001;
	background: #000;
	animation: psp-lightbox-in .2s ease;
	touch-action: none;                /* drag and pinch steer the panorama */
	overscroll-behavior: contain;
	user-select: none;
	-webkit-user-select: none;
}
.psp-pano[hidden] { display: none; }
.psp-pano-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.psp-pano-canvas:active { cursor: grabbing; }
.psp-pano-close { top: 10px; right: 12px; font-size: 32px; }
.psp-pano-full { top: 10px; right: 70px; }
.psp-pano-caption {
	position: absolute;
	top: 18px;
	left: 20px;
	right: 130px;
	color: var(--heading);
	font-family: var(--font-display);
	font-size: 20px;
	text-shadow: 0 1px 6px rgba(0,0,0,.8);
	pointer-events: none;
}
.psp-pano-caption[hidden] { display: none; }
.psp-pano-hint {
	position: absolute;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	max-width: calc(100% - 32px);
	padding: 8px 18px;
	color: var(--text);
	background: rgba(22,19,15,.75);
	border: 1px solid var(--rule);
	border-radius: 20px;
	font-family: var(--font-body);
	font-size: 16px;
	text-align: center;
	pointer-events: none;
	transition: opacity .6s ease;
}
.psp-pano-hint.is-hidden { opacity: 0; }
@media (max-width: 760px) {
	.psp-pano-caption { font-size: 17px; }
	.psp-pano-hint { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.psp-pano { animation: none; }
}
section table { max-width: 100%; }
section table[style*="width"], section table[width] { width: 100% !important; margin-left: 0 !important; }
section img[style*="width"] { max-width: 100%; height: auto; }

section > table.stops {
	width: 100% !important;
	margin: 28px auto !important;
	padding: 18px 10px;
	background: var(--surface-2);
	border: 1px solid var(--rule);
}

table.stops {
	color: var(--text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.45;
	white-space: nowrap;
}

table.stops table.stops { width: 100%; margin: 0; padding: 0; background: none; border: 0; }
td.stops { padding: 1px 8px; vertical-align: top; }
td.stops b { font-family: var(--font-display); font-weight: 600; color: var(--heading); }
td.manual { font-family: var(--font-display); font-weight: 600; color: var(--heading); }

/* ---------- Formulare / Bestellung ---------- */
table.myPSPforms, table.psplicense { width: 100%; max-width: 900px; }
table.psplicense { background: var(--surface-2); border: 1px solid var(--rule); }

.orderformelement, .textinputbold,
section input[type="text"], section input[type="email"], section input[type="password"],
section input[type="number"], section input:not([type]), section select, section textarea {
	max-width: 100%;
	padding: 8px 10px;
	background: var(--input-bg);
	color: var(--text);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	font-family: var(--font-body);
	font-size: 16px;
}

section input:focus, section select:focus, section textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--focus-ring);
}

section input[type="submit"], section input[type="button"], section button {
	padding: 11px 26px;
	background: var(--accent);
	color: var(--accent-contrast);
	border: 0;
	border-radius: var(--radius);
	font-family: var(--font-nav);
	font-size: 14px;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter .2s;
}
section input[type="submit"]:hover, section button:hover { filter: brightness(1.1); }

/* Old forms carry inline sizes (e.g. height:20px, submit 40x24px) made for the
   old layout without padding; they cut off text with this stylesheet. */
.orderformelement, .textinputbold,
section input[type="text"], section input[type="email"], section input[type="password"],
section input[type="number"], section input:not([type]), section select {
	height: auto !important;
	line-height: 1.4;
}
section input[type="submit"], section input[type="button"], section button {
	width: auto !important;
	height: auto !important;
	min-width: 120px;
	line-height: 1.2;
}

/* Newsletter: e-mail field as wide as the spam protection widget */
form[name="subscribe_unsubscribe"] input[type="email"] { width: 280px !important; }
form[name="subscribe_unsubscribe"] td { padding: 4px 8px 4px 0; vertical-align: middle; }

/* ALTCHA-1: spam protection widget (00_private/captcha/captcha.php) */
altcha-widget.psp-altcha {
	display: block;
	margin: 6px 0;
	--altcha-max-width: 280px;
	--altcha-border-width: 1px;
	--altcha-border-radius: var(--radius);
	--altcha-border-color: var(--rule);
	--altcha-color-base: var(--input-bg);
	--altcha-color-base-content: var(--text);
	--altcha-color-primary: var(--accent);
	--altcha-color-primary-content: var(--accent-contrast);
	--altcha-color-neutral: var(--surface-2);
	--altcha-color-neutral-content: var(--muted);
	--altcha-checkbox-border-color: var(--accent);
	--altcha-checkbox-outline-color: var(--focus-ring);
	--altcha-input-background-color: var(--input-bg);
	--altcha-input-color: var(--text);
	--altcha-spinner-color: var(--accent);
	--altcha-shadow: none;
	font-family: var(--font-body);
	font-size: 16px;
}
/* honeypot: invisible for people, bots fill it in */
.psp-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Inline-Hintergründe (z. B. Preisspalte) an das Theme anpassen */
section td[style*="background-color"] { background-color: var(--surface-2) !important; }
section img[src*="plus_100"], section img[src*="minus_100"] { filter: var(--icon-filter, none); cursor: pointer; }

/* NAME-1: proper name "PROSPECTUM virtual pipe organs" (00_home.php) without line
   break; on small screens it may wrap, otherwise it would stick out */
@media (min-width: 761px) { .brandname { white-space: nowrap; } }

/* ---------- Kleine Bildschirme (wirkt erst mit Viewport-Meta-Tag) ---------- */
@media (max-width: 760px) {
	body { padding: 0; }
	header { margin-top: 0; }
	section { padding: 28px 20px 36px; }
	nav { padding: 0 4px; }
	nav > ul > li > a { padding: 14px 9px; }
	section > p.centered:first-child img { height: auto; width: 100%; }
	section > p.centered:first-child a { flex: 1 1 100%; }
	table.organstable tbody { grid-template-columns: 110px minmax(0, 1fr); }
	td.organdescriptionimage { min-height: 110px; }
	td.organdescriptiontext:nth-child(2) { margin-right: 0; }
	td.organdescriptionimage:nth-child(3) { margin-left: 0; }

	/* VIEWPORT-1 (26.11.2026): nothing wider than the screen */
	nav > ul { flex-wrap: wrap; }
	nav > ul > li > a { padding: 12px 8px; letter-spacing: .12em; }
	nav > ul > li > a::after { left: 8px; right: 8px; bottom: 6px; }
	table.stops { white-space: normal; font-size: 14px; }
	section > table.stops { padding: 12px 8px; }
	td.stops { padding: 1px 4px; }
	/* divisions (manuals, pedal) below each other instead of side by side */
	td.stops:has(> table.stops) { display: block; }
	td.stops:has(> table.stops) + td.stops { margin-top: 14px; }
	section { overflow-wrap: break-word; hyphens: auto; }
	/* payment method table: label on its own line above the choices */
	section table:has(input[name="payment"]) tr { display: flex; flex-wrap: wrap; align-items: center; }
	section table:has(input[name="payment"]) tr > td:first-child { flex: 0 0 100%; }
	section table:has(input[name="payment"]) tr > td:first-child:empty { display: none; }
	section table:has(input[name="payment"]) tr > td:last-child { flex: 1 1 0; }
	section form[style*="padding-left"] { padding-left: 0 !important; }
	section input[type="submit"] { white-space: normal; height: auto !important; font-size: 16px !important; letter-spacing: .1em; }
	/* forms: the fixed widths (style="width: 690px") give way to the screen width */
	section input[style*="width"], section select[style*="width"], section textarea[style*="width"] { width: 100% !important; }
	section td[style*="width"] { width: auto !important; }
	/* order form: label above its field */
	section td:has(> label[for]), section td:has(> label[for]) + td { display: block; }
	section input, section select, section textarea { max-width: 100%; box-sizing: border-box; }
	section audio, section video, section iframe, section img { max-width: 100%; }
	section img { height: auto; }
	form[name="subscribe_unsubscribe"] td { display: block; }
	form[name="subscribe_unsubscribe"] input[type="email"] { width: 100% !important; }
}

/* ---------- Nocturne: Akzente ---------- */
header {
	box-shadow: inset 0 -40px 50px -20px rgba(14,12,9,.75);
	border-top: 1px solid var(--rule);
}

nav {
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

/* feine Goldlinie unter dem aktiven Menüpunkt */
nav > ul > li > a { position: relative; }
nav > ul > li > a::after {
	content: "";
	position: absolute;
	left: 15px; right: 15px; bottom: 10px;
	height: 1px;
	background: var(--accent);
	transform: scaleX(0);
	transition: transform .35s ease;
}
nav > ul > li:hover > a::after { transform: scaleX(1); }

section { border-left: 1px solid rgba(198,161,91,.08); border-right: 1px solid rgba(198,161,91,.08); }

section > p.centered:first-child a {
	padding: 6px;
	border: 1px solid var(--rule);
	background: var(--surface-2);
}
section > p.centered:first-child img { filter: saturate(.85) brightness(.92); }
section > p.centered:first-child a:hover img { filter: none; }

/* Überschrift mit goldenem Zierstrich */
section > h4:not(.organ)::after,
section > h4.organ::after {
	content: "";
	display: block;
	width: 64px;
	height: 1px;
	margin-top: .45em;
	background: var(--accent);
}

td.organdescriptiontext, td.organdescriptionimage { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
td.organdescriptionimage { border-left: 1px solid var(--rule); }
td.organdescriptiontext { border-right: 1px solid var(--rule); }

footer { border-top: 1px solid var(--rule); }

/* ---------- Cookie-Hinweis (cookienotice.js, layout.php) ---------- */
.cookienotice {
	position: fixed;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	z-index: 10000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 22px;
	width: calc(100% - 32px);
	max-width: var(--wrap);
	padding: 14px 22px;
	background: var(--menu-bg);
	color: var(--text);
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	box-shadow: 0 14px 34px rgba(0,0,0,.45);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.45;
	text-align: left;
}
.cookienotice[hidden] { display: none; }
.cookienotice a { margin-left: 6px; color: var(--link); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.cookienotice a:hover { color: var(--accent); }
.cookienotice button {
	padding: 9px 22px;
	background: var(--accent);
	color: var(--accent-contrast);
	border: 0;
	border-radius: var(--radius);
	font-family: var(--font-nav);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter .2s;
}
.cookienotice button:hover { filter: brightness(1.1); }
@media (max-width: 760px) {
	.cookienotice { bottom: 0; width: 100%; border-radius: 0; }
}
