/* HEF Church — "Dunkel & atmosphärisch".
   Tokens taken from the design PDF (2026-10-30). */

:root {
	--bg:            #0e0d0b;
	--bg-glow:       #241d14;
	--surface:       #181715;
	--surface-2:     #1f1b18;
	--surface-3:     #24211c;
	--line:          #2a2621;
	--text:          #f2eee5;
	--text-dim:      #c9c3b8;
	--text-muted:    #8c857a;
	--accent:        #f0b363;
	--accent-ink:    #17130d;

	--wrap:          1520px;
	--gutter:        clamp(1.25rem, 4vw, 3rem);
	--section:       clamp(4rem, 9vw, 8.5rem);
	--radius:        2px;

	--font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
	--font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* The atmosphere: a single warm glow behind the top of the page. */
body::before {
	content: '';
	position: fixed;
	inset: -20vh 0 auto 0;
	height: 90vh;
	background: radial-gradient(60% 55% at 50% 0%, var(--bg-glow) 0%, transparent 70%);
	pointer-events: none;
	z-index: 0;
}

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

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; }

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

h1, h2, h3, h4, .eyebrow, .btn, .nav a, .logo {
	font-family: var(--font-head);
	text-transform: uppercase;
}

h1, h2, h3, h4 {
	font-weight: 800;
	line-height: 0.95;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 { font-size: clamp(3rem, 11vw, 8.5rem); }
h2 { font-size: clamp(2rem, 5.5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin: 0 0 1.2em; color: var(--text-dim); max-width: 62ch; }

.eyebrow {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	color: var(--accent);
	margin: 0 0 1rem;
}
.eyebrow--muted { color: var(--text-muted); }

.accent { color: var(--accent); }

/* ---------- header ---------- */

.site-header {
	padding: 1.75rem 0 1rem;
	position: relative;
}
.site-header__bar {
	display: flex;
	align-items: center;
	gap: 2rem;
	flex-wrap: wrap;
}
.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.1em;
	text-decoration: none;
}
.logo__mark {
	width: 28px; height: 28px;
	border-radius: 50%;
	border: 2px solid var(--text);
	display: grid; place-items: center;
	font-size: 0.85rem;
	flex: none;
}
.nav { margin-left: auto; }
.nav ul {
	display: flex;
	gap: clamp(0.85rem, 1.8vw, 1.6rem);
	list-style: none;
	margin: 0; padding: 0;
	flex-wrap: wrap;
}
.nav a {
	font-size: 0.76rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	white-space: nowrap;
	text-decoration: none;
	color: var(--text);
	padding-block: 0.35rem;
	border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a:focus-visible, .nav .active > a { border-bottom-color: var(--accent); color: var(--accent); }
.nav .btn { padding: 0.65rem 1.25rem; font-size: 0.74rem; letter-spacing: 0.1em; }
.nav .btn:hover { border-bottom-color: var(--text); }

.strapline {
	font-family: var(--font-head);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--accent);
	margin-top: 0.75rem;
}

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.95rem 1.6rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-decoration: none;
	border: 1px solid var(--text);
	color: var(--text);
	background: transparent;
	border-radius: var(--radius);
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--text); color: var(--accent-ink); }

.btn--primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-ink);
}
.btn--primary:hover, .btn--primary:focus-visible { background: #f8c583; border-color: #f8c583; color: var(--accent-ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- hero ---------- */

.hero { padding: clamp(2rem, 6vw, 5rem) 0 0; }
.hero h1 { margin-bottom: 0.35em; }
.hero__lead { font-size: clamp(1rem, 1.5vw, 1.15rem); }
.hero__foot {
	display: grid;
	gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	align-items: end;
	margin-top: clamp(2rem, 5vw, 4rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }

.factbar {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	border-top: 1px solid var(--line);
	margin-top: clamp(2rem, 5vw, 3.5rem);
}
.factbar > div {
	padding: 1.75rem clamp(1rem, 2vw, 2rem) 1.75rem 0;
	border-right: 1px solid var(--line);
}
.factbar > div:last-child { border-right: 0; }
.factbar p { margin: 0; color: var(--text); font-size: 1.05rem; }
.factbar a { color: var(--text); text-decoration-color: var(--line); }
.factbar a:hover { color: var(--accent); }

/* ---------- sections ---------- */

.section { padding-block: var(--section); }
.section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* photo placeholders — swap for a real <img> in the admin */
.photo {
	background: var(--surface-2);
	display: grid;
	place-items: center;
	min-height: 320px;
	color: var(--text-muted);
	font-family: var(--font-head);
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-align: center;
	padding: 1rem;
}

/* two-up cards */
.cards {
	display: grid;
	gap: clamp(1.25rem, 2.5vw, 1.5rem);
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.card {
	background: var(--surface);
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
}
.card__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.card__body p { flex: 1; }
.card .btn { align-self: flex-start; margin-top: 1rem; }

/* numbered community list */
.rows { border-top: 1px solid var(--line); }
.row {
	display: grid;
	grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.1fr) 2rem;
	gap: clamp(1rem, 3vw, 2.5rem);
	align-items: center;
	padding-block: clamp(1.5rem, 3vw, 2.25rem);
	border-bottom: 1px solid var(--line);
	text-decoration: none;
	color: inherit;
}
.row:hover, .row:focus-visible { background: rgba(240, 179, 99, 0.04); }
.row__num { font-family: var(--font-head); font-size: 0.8rem; color: var(--text-muted); }
.row h3 { margin: 0; }
.row p { margin: 0; }
.row__arrow { color: var(--accent); font-size: 1.1rem; text-align: right; }
.row:hover .row__arrow { transform: translateX(4px); }
.row__arrow { transition: transform .18s ease; }

/* media tiles */
.tile {
	background: var(--surface);
	border: 1px solid var(--line);
	padding: clamp(1.75rem, 3vw, 2.5rem);
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 260px;
}
.tile:hover { border-color: var(--accent); }
.tile__icon {
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1.5px solid var(--accent);
	color: var(--accent);
	display: grid; place-items: center;
	font-size: 0.9rem;
}
.tile h3 { margin: auto 0 0; }

/* wide feature panel */
.panel {
	background: var(--surface);
	border: 1px solid var(--line);
	padding: clamp(1.75rem, 4vw, 3.5rem);
	display: grid;
	gap: 2rem;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: center;
	background-image: radial-gradient(70% 120% at 100% 50%, rgba(240,179,99,0.10), transparent 60%);
}
.panel__action { justify-self: end; }

/* split (history) */
.split {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	align-items: center;
}

/* ---------- page (non-home) ---------- */

.page-head {
	padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.75rem, 3vw, 2.75rem);
	border-bottom: 1px solid var(--line);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
	background-image: radial-gradient(80% 140% at 0% 0%, rgba(240, 179, 99, 0.07), transparent 65%);
}
.page-head h1 {
	font-size: clamp(2.5rem, 7vw, 5.5rem);
	margin: 0;
}

.page-body { padding-bottom: var(--section); }

/* --- prose --- */

.prose > :first-child { margin-top: 0; }

.prose h2 {
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	margin: 3rem 0 1.25rem;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}
.prose h2:first-of-type { padding-top: 0; border-top: 0; }

.prose h3 {
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	color: var(--accent);
	margin: 2.25rem 0 0.75rem;
	letter-spacing: 0.02em;
}

.prose p { font-size: 1.05rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { color: var(--text-dim); }

.prose a {
	color: var(--accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	text-decoration-color: rgba(240, 179, 99, 0.45);
}
.prose a:hover { text-decoration-color: var(--accent); }

.prose ul, .prose ol {
	max-width: 68ch;
	padding-left: 1.35rem;
	color: var(--text-dim);
}
.prose li { margin-bottom: 0.6rem; padding-left: 0.35rem; }
.prose li::marker { color: var(--accent); }
.prose ol li::marker { font-family: var(--font-head); font-size: 0.85em; }

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

/* Scripture and pull quotes */
.prose blockquote {
	margin: 2.25rem 0;
	padding: 0.25rem 0 0.25rem 1.75rem;
	border-left: 2px solid var(--accent);
	color: var(--text);
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	line-height: 1.5;
	max-width: 56ch;
}
.prose blockquote p { font-size: inherit; color: inherit; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote em {
	display: block;
	margin-top: 0.75rem;
	font-family: var(--font-head);
	font-style: normal;
	text-transform: uppercase;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	color: var(--accent);
}

/* Editorial notes — things still to be filled in. Not body copy. */
.prose .note {
	max-width: none;
	background: rgba(240, 179, 99, 0.06);
	border: 1px dashed rgba(240, 179, 99, 0.35);
	border-radius: var(--radius);
	padding: 1.1rem 1.35rem;
	margin: 1.75rem 0;
	font-size: 0.95rem;
	color: var(--text-dim);
}
.prose .note strong { color: var(--accent); }

/* a note that introduces a list: let the list continue the same box */
.prose .note:has(+ ul) {
	margin-bottom: 0;
	border-bottom: 0;
	padding-bottom: 0.4rem;
}
.prose .note:has(+ ul) + ul {
	max-width: none;
	background: rgba(240, 179, 99, 0.06);
	border: 1px dashed rgba(240, 179, 99, 0.35);
	border-top: 0;
	margin: 0 0 1.75rem;
	padding: 0 1.35rem 1.1rem 2.7rem;
	font-size: 0.95rem;
}

/* Tables: service times, bank details, the guest list */
.prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 2rem 0;
	font-size: 0.98rem;
}
.prose thead th {
	font-family: var(--font-head);
	text-transform: uppercase;
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	color: var(--text-muted);
	text-align: left;
	font-weight: 700;
	padding: 0 1rem 0.75rem 0;
	border-bottom: 1px solid var(--line);
}
.prose tbody td {
	padding: 0.95rem 1rem 0.95rem 0;
	border-bottom: 1px solid var(--line);
	color: var(--text-dim);
	vertical-align: top;
}
.prose tbody td:last-child { padding-right: 0; }
.prose tbody tr:hover td { background: rgba(240, 179, 99, 0.03); }
.prose tbody td:first-child { color: var(--text); white-space: nowrap; }
.prose tbody td:first-child strong { color: var(--text); }

.prose img { margin: 2rem 0; }

/* ---------- Jahresübersicht (Events) ---------- */

.jahr {
	padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem);
	border-top: 1px solid var(--line);
	background-image: radial-gradient(60% 100% at 50% 0%, rgba(240, 179, 99, 0.05), transparent 70%);
}
.jahr__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}
.jahr__head h2 { margin: 0; hyphens: auto; }
.jahr__zahl {
	font-family: var(--font-head);
	font-weight: 800;
	font-size: clamp(2.5rem, 7vw, 5rem);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1px var(--line);
	letter-spacing: 0.02em;
}

.monate {
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	background: var(--line);
	border: 1px solid var(--line);
}

.monat {
	background: var(--bg);
	padding: clamp(1.25rem, 2.2vw, 1.75rem);
	display: flex;
	flex-direction: column;
	transition: background-color .18s ease;
}
.monat:hover { background: var(--surface); }

.monat__name {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0 0 1.1rem;
	padding-bottom: 0.9rem;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-head);
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text);
}
.monat__nr {
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	color: var(--accent);
}

.termine { list-style: none; margin: 0; padding: 0; }
.termine li {
	display: grid;
	grid-template-columns: 3.4rem minmax(0, 1fr);
	gap: 0.75rem;
	padding: 0.5rem 0;
	align-items: baseline;
}
.termine li + li { border-top: 1px solid rgba(42, 38, 33, 0.6); }

.termin__datum {
	font-family: var(--font-head);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--accent);
	white-space: nowrap;
}
.termin__titel { font-size: 0.93rem; color: var(--text-dim); line-height: 1.45; }
.termin__zeit {
	display: block;
	font-size: 0.78rem;
	color: var(--text-muted);
	margin-top: 0.1rem;
}

.termine li.termin--offen { grid-template-columns: minmax(0, 1fr); }
.termine li.termin--offen .termin__titel { color: var(--text); }

.monat__leer { font-size: 0.88rem; color: var(--text-muted); margin: 0; }

/* closing call to action on every content page */
.pagecta {
	border-top: 1px solid var(--line);
	background: #0b0a09;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}
.pagecta__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem 2rem;
	align-items: center;
	justify-content: space-between;
}
.pagecta h2 { margin: 0; }

/* ---------- footer ---------- */

.site-footer {
	border-top: 1px solid var(--line);
	padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
	background: #0b0a09;
}
.footer-grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.footer-grid h4 { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--text); margin-bottom: 1.1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-grid a { color: var(--text-dim); text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-grid p { font-size: 0.95rem; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	border-top: 1px solid var(--line);
	margin-top: clamp(2rem, 4vw, 3rem);
	padding-top: 1.5rem;
	font-size: 0.85rem;
	color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom nav { display: flex; gap: 1.75rem; }

.skip-link {
	position: absolute;
	left: -9999px;
	background: var(--accent);
	color: var(--accent-ink);
	padding: 0.75rem 1.25rem;
	z-index: 10;
}
.skip-link:focus { left: var(--gutter); top: 0.5rem; }

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

/* ---------- narrow screens ---------- */

@media (max-width: 860px) {
	.prose table { display: block; overflow-x: auto; }
	.pagecta__inner { align-items: flex-start; }
	.row { grid-template-columns: 2.5rem minmax(0, 1fr); align-items: start; }
	.row__arrow { display: none; }
	.row p { grid-column: 2; }
	.panel { grid-template-columns: 1fr; }
	.panel__action { justify-self: start; }
	.hero__actions { justify-content: flex-start; }
	.factbar > div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
	.factbar > div:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
	.nav { margin-left: 0; width: 100%; }
	.nav ul { gap: 0.85rem 1.25rem; }
	.site-header__bar { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
