/*
Theme Name: Sharing Jesus
Theme URI: https://sharing-jesus.ch
Author: Sharing Jesus
Description: Ruhiges Pastell-Theme für sharing-jesus.ch, passend zum Chat und zu den Tablets. Ohne externe Schriften oder Dienste.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: sharing-jesus
*/

/* ---------- Grundfläche ---------- */
body {
	min-height: 100vh;
	background-attachment: fixed;
	position: relative;
	overflow-x: hidden;
}

/* Kreise wie auf dem Tablet: Pfirsich oben links, Salbei unten rechts */
body::before,
body::after {
	content: "";
	position: fixed;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(2px);
}
body::before {
	width: 34rem;
	height: 34rem;
	top: -12rem;
	left: -12rem;
	background: radial-gradient(circle at 60% 60%, rgba(248, 214, 196, .75), rgba(248, 214, 196, 0) 70%);
}
body::after {
	width: 40rem;
	height: 40rem;
	right: -14rem;
	bottom: -16rem;
	background: radial-gradient(circle at 40% 40%, rgba(204, 230, 218, .85), rgba(204, 230, 218, 0) 70%);
}

::selection { background: #e7daf3; }

a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* ---------- Kopfzeile ---------- */
.sj-header {
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	background: rgba(255, 251, 249, .72);
	border-bottom: 1px solid rgba(52, 45, 60, .06);
}
.admin-bar .sj-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sj-header { top: 46px; } }

.sj-brand a {
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	letter-spacing: -.01em;
}
.sj-brand a:hover { color: var(--wp--preset--color--plum); }

.sj-header .wp-block-navigation a { text-decoration: none; }
.sj-header .wp-block-navigation a:hover { color: var(--wp--preset--color--plum); }

.sj-nav-cta .wp-block-button__link {
	padding: .55rem 1.1rem !important;
	font-size: .92rem !important;
}

/* ---------- Abschnitte ---------- */
.sj-hero {
	padding-top: clamp(3.5rem, 9vw, 7.5rem) !important;
	padding-bottom: clamp(3rem, 7vw, 6rem) !important;
	text-align: center;
}
.sj-hero h1 {
	font-size: clamp(2.3rem, 5.6vw, 4.3rem) !important;
	line-height: 1.07 !important;
	letter-spacing: -.02em;
	max-width: 15ch;
	margin-left: auto !important;
	margin-right: auto !important;
}
.sj-hero .sj-lead {
	font-size: clamp(1.08rem, 1.6vw, 1.28rem);
	color: var(--wp--preset--color--ink);
	max-width: 36rem;
	margin-left: auto !important;
	margin-right: auto !important;
}
.sj-hero .wp-block-buttons { justify-content: center; }

.sj-kicker {
	display: inline-block;
	font-size: .78rem !important;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--plum) !important;
	background: rgba(255, 255, 255, .7);
	border: 1px solid rgba(146, 121, 172, .22);
	padding: .35rem .85rem;
	border-radius: 999px;
}

.sj-small {
	font-size: .88rem !important;
	color: var(--wp--preset--color--muted) !important;
}

.sj-section {
	padding-top: clamp(2.5rem, 6vw, 4.5rem) !important;
	padding-bottom: clamp(2.5rem, 6vw, 4.5rem) !important;
}
.sj-section > h2 { text-align: center; }
.sj-section > .sj-intro {
	text-align: center;
	color: var(--wp--preset--color--muted);
	max-width: 38rem;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* ---------- Karten ---------- */
.sj-card,
.sj-panel {
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 28px;
	box-shadow: 0 18px 50px -28px rgba(83, 62, 104, .35);
	padding: clamp(1.4rem, 3vw, 2.1rem) !important;
}
.sj-card h3 {
	font-size: 1.35rem !important;
	margin-top: .6rem !important;
	margin-bottom: .6rem !important;
}
.sj-card p { margin-top: 0; color: var(--wp--preset--color--ink); }
.sj-cards { gap: clamp(1rem, 2.4vw, 1.6rem) !important; }

.sj-icon {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin: 0 !important;
	border-radius: 16px;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.3rem !important;
	color: var(--wp--preset--color--plum) !important;
	background: linear-gradient(145deg, #f8edf3, #e7daf3);
}

.sj-panel h2 { margin-top: 0 !important; }

.sj-note {
	border-left: 3px solid var(--wp--preset--color--purple);
	background: rgba(255, 255, 255, .6);
	border-radius: 0 18px 18px 0;
	padding: 1rem 1.25rem !important;
}

/* ---------- Partner ---------- */
.sj-partners {
	text-align: center;
	color: var(--wp--preset--color--muted);
}
.sj-partners strong { color: var(--wp--preset--color--ink); font-weight: 600; }

/* ---------- Beiträge aus dem RefLab ---------- */
.sj-reflab-list {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	display: grid;
	gap: .9rem;
	max-width: 46rem;
}
.sj-reflab-list li a {
	display: flex;
	gap: 1rem;
	align-items: baseline;
	justify-content: space-between;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	background: rgba(255, 255, 255, .72);
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 20px;
	padding: 1rem 1.25rem;
	box-shadow: 0 12px 36px -26px rgba(83, 62, 104, .45);
	transition: transform .15s ease, box-shadow .15s ease;
}
.sj-reflab-list li a:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 40px -24px rgba(83, 62, 104, .55);
}
.sj-reflab-title {
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.12rem;
	line-height: 1.3;
}
.sj-reflab-meta {
	flex: none;
	font-size: .8rem;
	color: var(--wp--preset--color--muted);
	white-space: nowrap;
}
.sj-reflab-tag {
	display: inline-block;
	margin-right: .4rem;
	padding: .1rem .5rem;
	border-radius: 999px;
	background: #eee3f6;
	color: var(--wp--preset--color--plum);
	font-size: .72rem;
	font-weight: 600;
}
.sj-reflab-new {
	background: linear-gradient(135deg, #f8e2da, #eee3f6);
}
.sj-reflab-empty { text-align: center; color: var(--wp--preset--color--muted); }
@media (max-width: 600px) {
	.sj-reflab-list li a { flex-direction: column; gap: .35rem; }
}

/* ---------- Inhaltsseiten ---------- */
.sj-page-title {
	text-align: center;
	font-size: clamp(2.1rem, 4.6vw, 3.4rem) !important;
	letter-spacing: -.02em;
	margin-top: clamp(2.5rem, 6vw, 4.5rem) !important;
}
.sj-page-content h2 { margin-top: 2.6rem !important; }
.sj-page-content ul li { margin-bottom: .4rem; }

/* ---------- Fusszeile ---------- */
.sj-footer {
	border-top: 1px solid rgba(52, 45, 60, .07);
	background: rgba(255, 255, 255, .45);
}
.sj-footer a { color: var(--wp--preset--color--muted); text-decoration: none; }
.sj-footer a:hover { color: var(--wp--preset--color--plum); text-decoration: underline; }
.sj-footer p { color: var(--wp--preset--color--muted); }

/* ---------- Chat-Seite: Marke im Chat führt zurück zur Startseite ---------- */
.sj-home-link { color: inherit !important; text-decoration: none !important; }
.sj-home-link:hover { opacity: .75; }

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