/*
Theme Name: Zur Harmonie
Theme URI: https://www.zur-harmonie.de
Description: Repräsentatives Theme für die Johannisloge „Zur Harmonie“ i.Or. Chemnitz. schlanke Startseite (Kopfbild und Willkommen); passende Gestaltung für ICS Calendar, Ultimate FAQ, das Anmeldesystem und ein eingebautes Kontaktformular mit Rechenaufgabe. Schriften lokal (keine Google Fonts), automatischer Dark Mode.
Version: 1.7.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Enrico Schüppel
License: GPL-2.0-or-later
Text Domain: zur-harmonie
*/

/* ---------- Schriften (lokal, SIL OFL) ---------- */
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-latin.woff") format("woff"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("assets/fonts/SourceSans3-Italic-latin.woff") format("woff"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-SemiBold-latin.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/CormorantGaramond-SemiBoldItalic-latin.woff") format("woff"); font-weight: 600; font-style: italic; font-display: swap; }

/* ---------- Farben ---------- */
:root {
	--bg: #f7f5ef;
	--paper: #ffffff;
	--tint: #eef0f7;
	--ink: #1b2133;
	--muted: #5b6377;
	--line: #e3dfd3;
	--blue: #1d306f;
	--blue-deep: #0f1a3f;
	--on-blue: #f3f0e8;
	--gold: #a8832f;
	--gold-hi: #d4b15c;
	--gold-soft: rgba(212, 177, 92, .15);
	--shadow: 0 1px 2px rgba(15, 26, 63, .05), 0 12px 32px rgba(15, 26, 63, .08);
	--shadow-hi: 0 2px 4px rgba(15, 26, 63, .06), 0 20px 48px rgba(15, 26, 63, .14);
	--sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--serif: "Cormorant Garamond", Garamond, "Palatino Linotype", Palatino, Georgia, serif;
	--radius: 6px;
	--danger: #b3402c;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b1020;
		--paper: #121a31;
		--tint: #0f1630;
		--ink: #e8e5dd;
		--muted: #a2a8b8;
		--line: #252f4c;
		--blue: #16255a;
		--blue-deep: #070c1c;
		--gold: #d4b15c;
		--gold-soft: rgba(212, 177, 92, .12);
		--shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .3);
		--shadow-hi: 0 2px 4px rgba(0, 0, 0, .4), 0 20px 48px rgba(0, 0, 0, .45);
		--danger: #f0907a;
	}
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.wrap--mid { width: min(960px, 100% - 32px); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: var(--paper); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 16px; }

main { flex: 1 0 auto; }
.footer { flex-shrink: 0; }

/* Medaillon (Logen-Emblem) */
.medallion { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--gold-hi), 0 0 0 5px rgba(212, 177, 92, .25); overflow: hidden; }
.medallion img { width: 88%; height: 88%; object-fit: contain; display: block; }
.medallion--sm { width: 48px; height: 48px; }
.medallion--md { width: 76px; height: 76px; }
.medallion--lg { width: 132px; height: 132px; box-shadow: 0 0 0 3px var(--gold-hi), 0 0 0 9px rgba(212, 177, 92, .22), 0 18px 40px rgba(0, 0, 0, .35); }

/* Buttons */
.btn, .wp-block-button__link, .wp-element-button, button[type="submit"], input[type="submit"], .lh-storno-formular button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	font: 600 .95rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
	padding: 1em 1.8em; border-radius: 2px; border: 1px solid var(--gold); cursor: pointer;
	background: var(--gold); color: #fff; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover, .wp-block-button__link:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: #8f6e24; border-color: #8f6e24; color: #fff; }
.btn--gold { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--blue-deep); }
.btn--gold:hover { background: #e5c675; border-color: #e5c675; color: var(--blue-deep); }
.btn--ghost { background: transparent; border-color: rgba(243, 240, 232, .6); color: var(--on-blue); }
.btn--ghost:hover { background: rgba(243, 240, 232, .12); border-color: var(--on-blue); color: var(--on-blue); }
.btn--line { background: transparent; color: var(--gold); }
.btn--line:hover { background: var(--gold); color: #fff; }
@media (prefers-color-scheme: dark) { .btn--line:hover { color: var(--blue-deep); } }

/* Ornament */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 18px auto 0; max-width: 260px; }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament svg { width: 24px; height: 24px; flex: none; }

/* ---------- Kopfleiste ---------- */
.topbar { position: sticky; top: 0; z-index: 100; background: var(--blue-deep); color: var(--on-blue); transition: background .25s, box-shadow .25s; }
.admin-bar .topbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .topbar { top: 46px; } }
.topbar--overlay { position: fixed; left: 0; right: 0; background: transparent; }
.topbar--overlay.is-scrolled, .topbar--overlay.is-open { background: rgba(15, 26, 63, .97); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
@supports (backdrop-filter: blur(8px)) { .topbar--overlay.is-scrolled { background: rgba(15, 26, 63, .88); backdrop-filter: blur(10px); } }
.topbar--overlay .brand { opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.topbar--overlay.is-scrolled .brand, .topbar--overlay.is-open .brand { opacity: 1; visibility: visible; }
.topbar--overlay .topbar__inner { justify-content: flex-end; }
.topbar--overlay.is-scrolled .topbar__inner, .topbar--overlay.is-open .topbar__inner { justify-content: space-between; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.1; white-space: nowrap; }
.brand__tag { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }

.mainnav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.mainnav li { position: relative; }
.mainnav a { display: block; padding: 10px 9px; color: var(--on-blue); text-decoration: none; font-size: .84rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; opacity: .9; }
@media (min-width: 1261px) { .brand { flex: none; } .brand__name { font-size: 1.32rem; } }
.mainnav a:hover, .mainnav .current-menu-item > a, .mainnav .current_page_item > a, .mainnav .current-menu-parent > a, .mainnav .current-post-ancestor > a { color: var(--gold-hi); opacity: 1; }
.mainnav .menu > li > a[href*="/kontakt"] { margin-left: 8px; border: 1px solid var(--gold-hi); color: var(--gold-hi); padding: 9px 16px; border-radius: 2px; }
.mainnav .menu > li > a[href*="/kontakt"]:hover { background: var(--gold-hi); color: var(--blue-deep); }
.mainnav .sub-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--paper); border-top: 2px solid var(--gold-hi); box-shadow: var(--shadow-hi); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.mainnav li:hover > .sub-menu, .mainnav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mainnav .sub-menu a { color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; padding: 8px 18px; }
.mainnav .sub-menu a:hover { background: var(--gold-soft); color: var(--ink); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid rgba(212, 177, 92, .5); border-radius: 50%; background: transparent; color: var(--on-blue); cursor: pointer; place-items: center; flex: none; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1260px) {
	.nav-toggle { display: grid; }
	.topbar__inner { flex-wrap: wrap; }
	.mainnav { display: none; width: 100%; padding: 4px 0 18px; }
	.topbar.is-open .mainnav { display: block; }
	.mainnav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.mainnav a { padding: 13px 4px; border-bottom: 1px solid rgba(212, 177, 92, .15); font-size: .95rem; }
	.mainnav .menu > li > a[href*="/kontakt"] { margin: 14px 0 0; text-align: center; }
	.mainnav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; border: 0; padding: 0 0 0 16px; }
	.mainnav .sub-menu a { color: var(--on-blue); }
}
@media (max-width: 560px) {
	.brand__name { font-size: 1.15rem; white-space: normal; }
	.brand__tag { font-size: .68rem; }
	.medallion--sm { width: 40px; height: 40px; }
	.topbar__inner { min-height: 66px; }
}

/* ---------- Kopfbild (Startseite) ---------- */
.hero { position: relative; min-height: clamp(420px, 60vh, 580px); display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-blue); background: var(--blue-deep) var(--hero, none) 68% 50% / cover no-repeat; padding: 112px 0 0; overflow: hidden; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 46, .96) 0%, rgba(13, 23, 58, .86) 38%, rgba(15, 26, 63, .35) 72%, rgba(15, 26, 63, .15) 100%), linear-gradient(0deg, rgba(10, 18, 46, .7), transparent 35%); }
.hero__inner { position: relative; z-index: 1; padding-bottom: 80px; }
.hero__inner > * { max-width: 640px; }
.hero .medallion--lg { width: 92px; height: 92px; margin-bottom: 18px; }
.eyebrow { margin: 0 0 12px; font-size: .82rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-hi); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow--dark { color: var(--gold); }
.hero__title { margin: 0; font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.08; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero__lead { margin: 14px 0 0; font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.55; color: rgba(243, 240, 232, .88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.values { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; border-top: 1px solid rgba(212, 177, 92, .35); background: rgba(10, 18, 46, .55); padding: 14px 0; text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-hi); }
@media (max-width: 760px) {
	.hero { background-position: 62% 50%; text-align: center; padding-top: 110px; }
	.hero__shade { background: linear-gradient(180deg, rgba(10, 18, 46, .7) 0%, rgba(10, 18, 46, .9) 60%, rgba(10, 18, 46, .97) 100%); }
	.hero__inner > * { margin-inline: auto; }
	.hero__actions { justify-content: center; }
	.hero .medallion--lg { width: 80px; height: 80px; }
	.values { position: relative; letter-spacing: .14em; font-size: .74rem; line-height: 1.8; }
	.hero__inner { padding-bottom: 48px; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section--welcome { padding: clamp(48px, 5.5vw, 72px) 0 clamp(56px, 6.5vw, 88px); }
.section__head { text-align: center; margin-bottom: clamp(24px, 3.5vw, 40px); }
.section__title { margin: 0; font-size: clamp(2rem, 4.4vw, 3rem); }
.section__more { text-align: center; margin: 40px 0 0; }
.section--termine { background: var(--paper); border-block: 1px solid var(--line); }
.section--info { background: var(--tint); }
.section--news { background: var(--bg); }

.prose--welcome > p:first-child { font-size: 1.28rem; color: var(--ink); }

/* Karten */
.cards { display: grid; gap: 24px; }
.cards--info { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards--news { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); border-color: rgba(212, 177, 92, .6); }
.card--info { display: flex; flex-direction: column; gap: 10px; padding: 32px 30px 28px; color: var(--ink); text-decoration: none; position: relative; overflow: hidden; }
.card--info::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--gold-hi), transparent); }
.card__num { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); letter-spacing: .1em; }
.card__title { font-family: var(--serif); font-weight: 600; font-size: 1.75rem; line-height: 1.15; }
.card__text { color: var(--muted); font-size: 1.02rem; line-height: 1.6; flex: 1; }
.card__more { font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.card--post { display: flex; flex-direction: column; overflow: hidden; }
.card__media { display: block; aspect-ratio: 3 / 2; background: var(--blue); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.card--post:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, var(--blue), var(--blue-deep)); }
.card__body { padding: 22px 24px 26px; }
.card__date { margin: 0 0 6px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.card--post .card__title { margin: 0 0 10px; font-size: 1.55rem; }
.card--post .card__title a { color: var(--ink); text-decoration: none; }
.card--post .card__title a:hover { color: var(--gold); }
.card--post .card__text { margin: 0; }

/* Einladung */
.cta { position: relative; background: radial-gradient(ellipse at 50% 0%, rgba(212, 177, 92, .18), transparent 60%), linear-gradient(180deg, var(--blue), var(--blue-deep)); color: var(--on-blue); text-align: center; padding: clamp(48px, 6vw, 76px) 0; }
.cta__title { margin: 20px 0 14px; font-size: clamp(2rem, 4.4vw, 3rem); }
.cta p { margin: 0 auto 30px; max-width: 560px; color: rgba(243, 240, 232, .85); font-size: 1.15rem; }
.cta .ornament { color: var(--gold-hi); }

/* ---------- Unterseiten ---------- */
.pagehead { background: radial-gradient(ellipse at 50% -30%, rgba(212, 177, 92, .2), transparent 60%), linear-gradient(180deg, var(--blue-deep), var(--blue)); color: var(--on-blue); text-align: center; padding: clamp(48px, 8vw, 88px) 0 clamp(52px, 8vw, 92px); position: relative; }
.pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); opacity: .7; }
.pagehead__inner { max-width: 900px; }
.pagehead__title { margin: 0; font-size: clamp(2.2rem, 5.5vw, 3.8rem); text-wrap: balance; }
.pagehead__desc { margin-top: 12px; color: rgba(243, 240, 232, .8); }
.content { padding: clamp(36px, 6vw, 64px) 0 clamp(64px, 9vw, 104px); }
.sheet { width: min(900px, 100%); margin-inline: auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(26px, 6vw, 64px) clamp(20px, 6vw, 72px); }
.sheet__lead { margin: 0 0 32px; }
.sheet__lead img { display: block; width: 100%; border-radius: 4px; }
.sheet__lead--post img { max-height: 640px; width: auto; margin-inline: auto; }

/* ---------- Fließtext ---------- */
.prose { overflow-wrap: break-word; }
.prose > * { margin-block: 0 1.1em; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 2.1rem; margin: 1.5em 0 .5em; }
.prose h3 { font-size: 1.6rem; margin: 1.4em 0 .45em; }
.prose h4 { font-size: 1.3rem; margin: 1.2em 0 .4em; }
.prose strong, .prose b { font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }
.prose hr, .prose .wp-block-separator { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 2.4em auto; max-width: 360px; opacity: 1; }
.prose blockquote, .prose .wp-block-quote { position: relative; margin: 2em 0; padding: 1.6em 1.8em 1.4em 3.4em; background: var(--tint); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-size: 1.32em; font-style: italic; line-height: 1.5; color: var(--ink); }
.prose blockquote::before, .prose .wp-block-quote::before { content: "„"; position: absolute; left: .32em; top: -.05em; font-size: 3.4em; line-height: 1; color: var(--gold); font-style: normal; }
.prose blockquote p { margin: 0 0 .6em; }
.prose blockquote p:last-of-type { margin-bottom: 0; }
.prose blockquote cite, .prose .wp-block-quote cite { display: block; margin-top: .9em; font-family: var(--sans); font-style: normal; font-size: .62em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.prose figure, .prose .wp-block-image { margin: 2em auto; }
.prose figure img, .prose .wp-block-image img { border-radius: 4px; }
.prose figcaption, .prose .wp-element-caption { margin-top: .6em; text-align: center; font-size: .92rem; font-style: italic; color: var(--muted); }
.prose .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 50%; }
.prose .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 50%; }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose .aligncenter img { margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) { .prose .alignleft, .prose .alignright { float: none; margin: 1.6em auto; max-width: 100%; } }
.prose table { width: 100%; border-collapse: collapse; font-size: .98em; }
.prose th, .prose td { padding: .7em .9em; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--serif); font-size: 1.15em; border-bottom: 2px solid var(--gold); }
.prose td:first-child { font-weight: 600; }
.prose .wp-block-table { overflow-x: auto; }
@media (max-width: 600px) { .prose table:not(.wp-block-table table), .prose table tbody, .prose table tr, .prose table td { display: block; width: 100%; } .prose table td { border: 0; padding: .3em 0; } .prose table tr { border-bottom: 1px solid var(--line); padding: .6em 0; } }

/* Formulare (allgemein: Anmeldesystem, Storno, Kontakt-Plugins, Suche) */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], input[type="search"], input[type="number"], input[type="date"], input[type="password"], textarea, select {
	width: 100%; max-width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--bg);
	border: 1px solid var(--line); border-radius: 3px; padding: .7em .85em; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--gold); width: 1.1em; height: 1.1em; }
label { font-size: 1rem; font-weight: 600; }
.lh-storno-formular, form[class^="lh-"], form[class*=" lh-"] { max-width: 560px; }
form[class^="lh-"] p, form[class*=" lh-"] p { margin: 0 0 1.1em; }
.searchform { display: flex; gap: 10px; margin: 0 0 1.4em; }
.searchform button { flex: none; padding: .9em 1.4em; }

/* ---------- Plugin: ICS Calendar (Arbeitsplan / Termine) ---------- */
.ics-calendar { font-family: var(--sans) !important; }
.ics-calendar .ics-calendar-date-wrapper { display: grid; grid-template-columns: 170px 1fr; gap: 0 24px; padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.ics-calendar .ics-calendar-date-wrapper:first-child { border-top: 1px solid var(--line); }
.ics-calendar h4.ics-calendar-date { margin: 0 !important; padding: 0 !important; background: none !important; font-family: var(--serif) !important; font-weight: 600; font-size: 1.35rem !important; line-height: 1.2; color: var(--gold) !important; }
.ics-calendar h4.ics-calendar-date span[data-date-format="l"] { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ics-calendar dl.events { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0 !important; align-items: baseline; }
.ics-calendar dl.events dt.time, .ics-calendar dl.events dd.event { background: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.ics-calendar dl.events dt.time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; font-size: 1rem !important; }
.ics-calendar dl.events dd.event .title { font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.ics-calendar dl.events dd.event .recurrence, .ics-calendar dl.events dd.event .descloc { display: block; font-size: .92rem; color: var(--muted); margin-top: 2px; }
.ics-calendar .end_time { color: var(--muted); font-weight: 400; }
.ics-calendar .ics-calendar-select, .ics-calendar select { width: auto; }
.termine .ics-calendar .ics-calendar-date-wrapper { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px !important; background: var(--bg); }
.termine .ics-calendar .ics-calendar-date-wrapper:first-child { border-top: 1px solid var(--line); }
@media (max-width: 600px) { .ics-calendar .ics-calendar-date-wrapper { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- Plugin: Ultimate FAQ (100 Fragen) ---------- */
.ewd-ufaq-faq-list { font-family: var(--sans); }
.ewd-ufaq-faq-category { margin: 0 0 18px; }
.ewd-ufaq-faq-category-title h3 { margin: 0 !important; padding: 16px 20px !important; background: var(--blue) !important; color: var(--on-blue) !important; font-family: var(--serif) !important; font-size: 1.4rem !important; border-radius: var(--radius); cursor: pointer; position: relative; }
.ewd-ufaq-faq-category-title h3::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold-hi); font-family: var(--sans); font-size: 1.4rem; }
.ewd-ufaq-faq-category-title.ewd-ufaq-category-opened h3::after, .ewd-ufaq-faq-category-title.ewd-ufaq-faq-category-title-opened h3::after { content: "–"; }
.ewd-ufaq-faq-category-inner { padding: 6px 0 0; }
.ewd-ufaq-faq-div { border: 0 !important; border-bottom: 1px solid var(--line) !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.ewd-ufaq-faq-title { padding: 14px 6px !important; cursor: pointer; }
.ewd-ufaq-faq-title > a.ewd-ufaq-post-margin { display: flex !important; align-items: baseline; gap: .8em; text-decoration: none !important; }
.ewd-ufaq-faq-title .ewd-ufaq-post-margin-symbol { float: none !important; flex: none; width: 1.2em; margin: 0 !important; text-align: center; }
.ewd-ufaq-faq-title .ewd-ufaq-faq-title-text { float: none !important; flex: 1; margin: 0 !important; }
.ewd-ufaq-faq-title .ewd-ufaq-clear { display: none; }
.ewd-ufaq-faq-title a, .ewd-ufaq-faq-title-text h4 { color: var(--ink) !important; text-decoration: none !important; font-family: var(--sans) !important; font-weight: 600 !important; font-size: 1.06rem !important; line-height: 1.45 !important; margin: 0 !important; }
.ewd-ufaq-faq-title:hover .ewd-ufaq-faq-title-text h4 { color: var(--gold) !important; }
.ewd-ufaq-post-margin-symbol, .ewd-ufaq-post-margin-symbol span { color: var(--gold) !important; background: none !important; }
.ewd-ufaq-faq-body { padding: 0 6px 18px 6px !important; color: var(--ink); line-height: 1.7; }
.ewd-ufaq-back-to-top a { font-size: .85rem; color: var(--gold); }

/* ---------- 100 Fragen (ohne Plugin) ---------- */
.faq { margin: 0 0 8px; }
.faq__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; }
.faq__count { font-size: .85rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.faq__toggle { font: 600 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: transparent; border: 1px solid var(--gold); border-radius: 2px; padding: .7em 1.2em; cursor: pointer; }
.faq__toggle:hover { background: var(--gold); color: #fff; }
.faq__group { margin: 0 0 10px; border-radius: var(--radius); }
.faq__group > summary { list-style: none; }
.faq__group > summary::-webkit-details-marker, .faq__item > summary::-webkit-details-marker { display: none; }
.faq__group-title { display: flex; align-items: center; gap: 14px; padding: 15px 20px; background: var(--blue); color: var(--on-blue); border-radius: var(--radius); cursor: pointer; font-family: var(--serif); font-weight: 600; font-size: 1.32rem; line-height: 1.25; transition: background .15s; }
.faq__group-title:hover { background: var(--blue-deep); }
.faq__group-title > span:first-child { flex: 1; }
.faq__group-count { flex: none; min-width: 2.2em; padding: 2px 8px; border: 1px solid rgba(212, 177, 92, .55); border-radius: 999px; font-family: var(--sans); font-size: .78rem; text-align: center; color: var(--gold-hi); }
.faq__group-title::after { content: "+"; flex: none; width: 1em; text-align: center; font-family: var(--sans); font-size: 1.4rem; font-weight: 400; color: var(--gold-hi); }
.faq__group[open] > .faq__group-title { border-radius: var(--radius) var(--radius) 0 0; }
.faq__group[open] > .faq__group-title::after { content: "–"; }
.faq__items { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); padding: 2px 18px; background: var(--paper); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__q { position: relative; display: block; list-style: none; padding: 14px 0 14px 30px; cursor: pointer; font-weight: 600; font-size: 1.06rem; line-height: 1.45; color: var(--ink); }
.faq__q::before { content: "+"; position: absolute; left: 4px; top: 13px; color: var(--gold); font-weight: 400; font-size: 1.2rem; }
.faq__item[open] > .faq__q::before { content: "–"; }
.faq__q:hover { color: var(--gold); }
.faq__a { padding: 0 0 18px 30px; }
.faq__item:target > .faq__q, .faq__item.is-target > .faq__q { color: var(--gold); }
.faq + .ornament { margin: 40px auto 32px; }
.prose--after-faq { text-align: center; }
.prose--after-faq > * { margin-inline: auto; }
.prose--after-faq > p { margin-bottom: .45em; }
.prose--after-faq blockquote, .prose--after-faq .wp-block-quote { text-align: left; margin-top: 2em; }
@media (max-width: 600px) { .faq__items { padding: 2px 12px; } .faq__group-title { font-size: 1.15rem; padding: 13px 14px; } }

/* Blätter-Navigation (Beiträge) */
.ornament + .pager { margin-top: 24px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager__link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.pager__link:hover { border-color: var(--gold); background: var(--gold-soft); }
.pager__link--next { text-align: right; grid-column: 2; }
.pager__dir { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pager__title { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
@media (max-width: 600px) { .pager { grid-template-columns: 1fr; } .pager__link--next { grid-column: 1; } .pager > span:empty { display: none; } }
.navigation.pagination { margin-top: 40px; text-align: center; }
.nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.page-numbers { display: inline-block; min-width: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 3px; text-decoration: none; color: var(--ink); background: var(--paper); }
.page-numbers.current, .page-numbers:hover { border-color: var(--gold); color: var(--gold); }

/* Suchergebnisse */
.results { list-style: none; margin: 0; padding: 0; }
.results li { padding: 1em 0; border-bottom: 1px solid var(--line); }
.results__title { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; text-decoration: none; }
.results p { margin: .3em 0 0; color: var(--muted); }

/* ---------- Kontaktformular [kontaktformular] ---------- */
.cf { margin-top: 1.6em; scroll-margin-top: 100px; }
.cf-row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 600px) { .cf-row--2 { grid-template-columns: 1fr; } }
.cf-field { margin: 0 0 1.2em; }
.cf-field label { display: block; margin-bottom: .35em; }
.cf-req { color: var(--gold); }
.cf-opt { color: var(--muted); font-weight: 400; font-style: italic; }
.cf select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.4em; }
.cf textarea { min-height: 9em; resize: vertical; line-height: 1.5; }
.cf [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179, 64, 44, .12); }
.cf-error { margin: .35em 0 0; color: var(--danger); font-size: .95rem; }
.cf-alert { margin: 0 0 1.4em; padding: .9em 1.1em; border-left: 3px solid var(--danger); background: rgba(179, 64, 44, .08); }
.cf-alert:focus, .cf-success:focus { outline: none; }
.cf-captcha input { max-width: 13em; }
.cf-captcha strong { color: var(--gold); }
.cf-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-submit { margin: 1.6em 0 .9em; }
.cf button[disabled] { opacity: .6; cursor: wait; }
.cf-privacy { font-size: .92rem; line-height: 1.55; color: var(--muted); }
.cf-success { text-align: center; padding: 2.2em 1em; border: 1px solid var(--gold); border-radius: var(--radius); background: var(--gold-soft); scroll-margin-top: 100px; }
.cf-success__title { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: .5em 0 .2em; }

/* ---------- Fußbereich ---------- */
.footer { background: var(--blue-deep); color: rgba(243, 240, 232, .78); font-size: 1rem; }
.footer a { color: var(--on-blue); text-decoration: none; }
.footer a:hover { color: var(--gold-hi); }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; padding: 56px 0 44px; align-items: start; }
.footer__name { margin: 16px 0 2px; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--on-blue); }
.footer__tag { margin: 0; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-hi); }
.footer__label { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-hi); }
.footer address { font-style: normal; line-height: 1.7; margin-bottom: 10px; }
.footer .menu { list-style: none; margin: 0; padding: 0; }
.footer__pages li { margin-bottom: 6px; }
.footer__bar { border-top: 1px solid rgba(212, 177, 92, .45); }
.footer__bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding: 22px 0; font-size: .92rem; }
.footer__bar p { margin: 0; }
.footer__legal .menu { display: flex; gap: 22px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; text-align: center; } .footer__bar-inner { justify-content: center; text-align: center; } }

/* Nach oben */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--gold-hi); border: 1px solid rgba(212, 177, 92, .5); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; }
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print {
	.topbar, .footer, .to-top, .hero__actions, .cta, .nav-toggle { display: none !important; }
	body { background: #fff; color: #000; }
	.pagehead, .hero { background: none !important; color: #000; padding: 0 0 12pt; min-height: 0; }
	.sheet { box-shadow: none; border: 0; padding: 0; }
}
