/*
Theme Name: FeG Minimal
Description: Schlankes Übergangs-Theme bis zum Relaunch, im Stil des neuen FeG-München-Ost-Designs. Startseite mit eigenem Text, Predigten, Impressum und Datenschutz bleiben erreichbar.
Version: 2.0
Requires PHP: 7.4
Text Domain: feg-minimal
*/

/* ---- Schriften (lokal eingebunden, keine Verbindung zu Google) ---- */
@font-face {
	font-family: "Outfit";
	src: url("assets/fonts/outfit-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Public Sans";
	src: url("assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Public Sans";
	src: url("assets/fonts/public-sans-latin-wght-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

/* ---- Design-Tokens (aus dem Design System) ---- */
:root {
	--cream-50: #FBF7F0;
	--cream-100: #F7F1E6;
	--cream-300: #EDE3D3;
	--cream-400: #E2D4BD;
	--sand-200: #D9C4A2;
	--sand-300: #C9A578;
	--sage-500: #889674;
	--sage-600: #6D7B5C;
	--sage-700: #525E45;
	--ink-900: #2C2620;
	--ink-700: #4A3F35;
	--ink-500: #6B5E52;

	--bg: var(--cream-100);
	--bg-elevated: var(--cream-50);
	--bg-sunken: var(--cream-300);
	--fg: var(--ink-900);
	--fg-muted: var(--ink-700);
	--fg-subtle: var(--ink-500);
	--link: var(--sage-600);
	--link-hover: var(--sage-700);
	--border: var(--sand-200);
	--border-subtle: var(--cream-400);

	--font-display: "Outfit", "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
	--font-sans: "Public Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

	--radius-md: 6px;
	--radius-lg: 10px;
	--radius-xl: 16px;
	--shadow-sm: 0 1px 3px rgba(44, 38, 32, 0.08), 0 1px 2px rgba(44, 38, 32, 0.04);
	--shadow-md: 0 4px 12px rgba(44, 38, 32, 0.08), 0 2px 4px rgba(44, 38, 32, 0.04);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);

	--width-prose: 65ch;
	--width-default: 1080px;
	--gutter: 24px;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 500;
	color: var(--fg);
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-wrap: balance;
	margin: 2.2em 0 0.6em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3rem); line-height: 1.1; margin-top: 0; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.375rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p, ul, ol, blockquote { margin: 0 0 1.1em; }

a {
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 220ms var(--ease), text-decoration-thickness 220ms var(--ease);
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

a:focus-visible, button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--cream-100), 0 0 0 4px var(--sage-500);
	border-radius: var(--radius-md);
}

img, video, iframe, audio { max-width: 100%; }
img { height: auto; }
audio { width: 100%; display: block; margin: 0.5em 0; }

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

blockquote {
	border-left: 2px solid var(--sage-500);
	padding-left: 1.2em;
	color: var(--fg-muted);
	font-style: italic;
}

.container {
	width: 100%;
	max-width: var(--width-default);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.prose { max-width: var(--width-prose); }

.eyebrow {
	display: block;
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--sage-600);
	margin-bottom: 1rem;
}

.lead, .entry > p:first-child {
	font-size: 1.1875rem;
	line-height: 1.6;
	color: var(--fg-muted);
}

.button, .wp-block-button__link {
	display: inline-block;
	background: var(--sage-500);
	color: var(--cream-100);
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	padding: 15px 24px;
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: background 220ms var(--ease);
}
.button:hover, .wp-block-button__link:hover { background: var(--sage-600); color: var(--cream-100); }
.button:active, .wp-block-button__link:active { background: var(--sage-700); transform: translateY(1px); }

.text-link { font-weight: 600; }

/* ---- Kopfzeile ---- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 241, 230, 0.92);
	-webkit-backdrop-filter: blur(12px) saturate(1.1);
	backdrop-filter: blur(12px) saturate(1.1);
	border-bottom: 1px solid var(--border-subtle);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 48px; width: auto; display: block; }
.site-nav { display: flex; gap: 24px; }
.site-nav a {
	color: var(--fg-muted);
	font-weight: 500;
	font-size: 0.9375rem;
	text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--sage-600); }

/* ---- Inhalt ---- */
.site-main { padding: 72px 0 96px; }

.hero { padding: 24px 0 8px; }
.hero h1 { max-width: 18ch; }

.entry { margin-top: 32px; }
.entry > *:first-child { margin-top: 0; }
.entry .alignwide, .entry .alignfull { max-width: none; }
.entry figure { margin: 2em 0; }
.entry figure img { border-radius: var(--radius-xl); }
.entry figcaption { font-size: 0.875rem; font-style: italic; color: var(--fg-subtle); margin-top: 0.5em; }

.band {
	background: var(--bg-sunken);
	padding: 64px 0;
	margin-top: 72px;
}
.band h2 { margin-top: 0; }
.band p { color: var(--fg-muted); max-width: var(--width-prose); }

.page-title { margin-bottom: 0.4em; }
.site-main--home { padding-bottom: 0; }
.site-main--home .container:last-child { padding-bottom: 96px; }

/* ---- Fußzeile ---- */
.site-footer { background: var(--bg-sunken); }
.band + .site-footer { border-top: 1px solid var(--border-subtle); }
.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	padding-top: 32px;
	padding-bottom: 32px;
}
.site-footer .brand { display: flex; align-items: center; gap: 16px; }
.site-footer .brand img { height: 36px; width: auto; display: block; }
.site-footer small { color: var(--fg-subtle); font-size: 0.8125rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { color: var(--fg-muted); font-size: 0.875rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--sage-600); }

/* ---- Predigt-Plugin: an das Design anpassen ---- */
#sorg_filter_buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 24px;
	padding: 0 0 20px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--border);
}
#sorg_filter_buttons span,
#sorg_filter_buttons a {
	font-family: var(--font-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	padding: 0;
	text-transform: uppercase;
}
#sorg_filter_buttons span { color: var(--fg-subtle); }
#sorg_filter_buttons a { color: var(--sage-600); text-decoration: none; }
#sorg_filter_buttons a:hover, #sorg_filter_buttons a.active { color: var(--sage-700); }
#sorg_filter_buttons a::after {
	content: "";
	font-family: inherit;
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 8px;
	padding: 0;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
	transition: transform 220ms var(--ease);
}
#sorg_filter_buttons a.active::after { transform: translateY(0) rotate(-135deg); }

#sorg_filter { padding: 0; }
#sorg_filter > div { padding-bottom: 24px; }
#sorg_filter > div::after { content: ""; display: table; clear: both; }
#sorg_filter h2 { font-size: 1.375rem; margin: 0 0 12px; }
#sorg_filter h3 { font-size: 1rem; margin: 16px 0 4px; clear: both; }
#sorg_filter p[class*="col-md-"] {
	float: left;
	width: 33.333%;
	margin: 0 0 6px;
	padding-right: 12px;
}
#sorg_filter p.col-md-3 { width: 25%; }
#sorg_filter a { text-decoration: none; }
#sorg_filter a:hover { text-decoration: underline; }
.clearfix { clear: both; }

#filter-selected { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
#filter-selected a.button,
#filter-selected a.button.blue,
#filter-selected a.button.jade {
	background: transparent;
	border: 1px solid var(--sand-300);
	color: var(--fg);
	font-family: var(--font-sans) !important;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0;
	padding: 8px 14px;
	border-radius: 999px;
}
#filter-selected a.button:hover { background: var(--cream-300); }
a.button.sorg-close::after { content: " ×" !important; font-family: var(--font-sans) !important; padding-left: 4px; }

.sorg_sermon,
.sorg_sermon.visible-xs {
	background: var(--bg-elevated);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	padding: 24px;
	margin-bottom: 16px;
	transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
}
.sorg_sermon:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.sorg_sermon.visible-xs > h3 {
	font-size: 1.375rem;
	text-align: left;
	margin: 0 0 4px;
}
.sorg_sermon h3 a { color: var(--fg); text-decoration: none; }
.sorg_sermon h3 a:hover { color: var(--sage-600); }
.sorg_sermon.visible-xs p { text-align: left; margin: 0 0 8px; color: var(--fg-muted); }
.sorg_sermon.visible-xs table { width: 100%; margin: 0; border-collapse: collapse; }
.sorg_sermon.visible-xs table td { vertical-align: top; padding: 8px 0 0; }
.sorg_sermon.visible-xs table td:nth-child(1) { width: 64px; padding-right: 16px; }
.sorg_sermon.visible-xs table td:nth-child(1) p {
	text-align: center;
	margin: 0;
	line-height: 1.2;
	font-size: 0.8125rem;
	color: var(--fg-subtle);
}
.sorg_sermon.visible-xs table td:nth-child(1) p:first-child {
	font-family: var(--font-display);
	font-size: 1.75rem;
	color: var(--fg);
}
.sorg_sermon.visible-xs table td:nth-child(2) { width: auto; }
.sorg_sermon.visible-xs table td:nth-child(2) span { display: block; font-size: 0.9375rem; }
.sorg_sermon.visible-xs table td:nth-child(3) { width: 64px; padding-left: 16px; }
.sorg_sermon.visible-xs table td:nth-child(3) img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}
.sorg_sermon td > a[href],
.sorg_single_sermon a.button.orange {
	font-size: 0.875rem;
	font-weight: 600;
}

.sorg_pagination { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sorg_pagination a,
.sorg_pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	margin: 0;
	padding: 0 8px;
	font-size: 0.9375rem;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	color: var(--fg-muted);
	text-decoration: none;
}
.sorg_pagination a:hover { background: var(--cream-300); border-color: var(--border); color: var(--fg); }
.sorg_pagination span.active { background: var(--sage-500); border-color: var(--sage-500); color: var(--cream-100); }

.sorg_single_sermon { text-align: left; max-width: none; }
.sorg_single_sermon h1 { margin-bottom: 0.3em; }
.sorg_single_sermon h2.sermon-serie,
.sorg_single_sermon h2.sermon-bible-book { font-size: 1.125rem; font-weight: 500; color: var(--fg-muted); margin: 0 0 1em; }
.sorg_single_sermon .embed-iframe { border-radius: var(--radius-xl); margin: 24px 0; }
.sorg_single_sermon .row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.sorg_single_sermon .row > .col-md-6:nth-of-type(1),
.sorg_single_sermon .row > .col-md-6:nth-of-type(2) {
	border: 0;
	margin: 0;
	min-height: 0;
	padding: 24px;
	background: var(--bg-elevated);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}
.sorg_single_sermon .col-md-6 h2 { font-size: 1.375rem; margin-top: 0; }
.sorg_single_sermon .col-md-6 > img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; float: left; margin: 0 16px 8px 0; }
.sorg_single_sermon .col-md-6 h4 { margin: 0.4em 0 0.4em; }
.sorg_single_sermon a.button.orange { margin-top: 8px; }

/* ---- Mobil ---- */
@media (max-width: 767px) {
	:root { --gutter: 16px; }
	.site-logo img { height: 36px; }
	.site-header .container { padding-top: 12px; padding-bottom: 12px; }
	.site-nav { gap: 16px; }
	.site-main { padding: 40px 0 64px; }
	.band { padding: 48px 0; margin-top: 48px; }
	#sorg_filter p[class*="col-md-"], #sorg_filter p.col-md-3 { width: 50%; }
	.sorg_single_sermon .row { grid-template-columns: 1fr; }
	.sorg_sermon.visible-xs table td:nth-child(3) { display: none; }
	.site-footer .container { flex-direction: column; align-items: flex-start; }
}
