/*
 * Gestaltung der Startseite im Entwurf "Richtung A".
 * Gehoert zum Child-Theme howes-child und wird aus dessen functions.php geladen.
 * Alle Regeln sind auf .svh-abschnitt beschraenkt, damit nichts ausserhalb der
 * Startseite beeinflusst wird. Schriften liegen im Child-Theme, es geht keine
 * Anfrage an Google.
 */

@font-face {
	font-family: 'SVH Titel';
	src: url('fonts/figtree-latin.woff2') format('woff2');
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'SVH Titel';
	src: url('fonts/figtree-latin-ext.woff2') format('woff2');
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'SVH Text';
	src: url('fonts/sourcesans3-latin.woff2') format('woff2');
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'SVH Text';
	src: url('fonts/sourcesans3-latin-ext.woff2') format('woff2');
	font-weight: 400 600;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--svh-papier:      #faf7f2;
	--svh-sand:        #f2ece2;
	--svh-flaeche:     #ffffff;
	--svh-linie:       #e3dbcf;
	--svh-tinte:       #23201c;
	--svh-tinte-weich: #4a443c;
	--svh-grau:        #6b6459;
	--svh-terra:       #a8482a;
	--svh-terra-dunkel:#7d3520;
	--svh-titel: 'SVH Titel', 'Segoe UI', system-ui, sans-serif;
	--svh-text:  'SVH Text', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Aufmacher-Karussell ---------- */

/* Das Theme gibt jeder Reihe oben 80px Polsterung bei -60px Aussenabstand.
   Beim Aufmacher soll das Bild buendig unter der Kopfleiste sitzen. */
.svh-aufmacher {
	position: relative;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
}
.svh-aufmacher .vc_column-inner,
.svh-aufmacher .wpb_wrapper,
.svh-aufmacher .wpb_text_column,
.svh-aufmacher .wpb_column {
	padding: 0 !important;
	margin: 0 !important;
}

/* Ohne JavaScript ist nur die erste Folie zu sehen - besser als alle
   untereinander. Sobald das Skript laeuft, entscheidet --aktiv.
   Die beiden Faelle schliessen sich ueber :not() gegenseitig aus; ohne das
   gewinnt die :first-child-Regel wegen hoeherer Spezifitaet und blendet auch
   die aktive Folie aus. */
.svh-aufmacher .svh-folie { display: none; }
.svh-aufmacher:not(.svh-aufmacher--bereit) .svh-folie:first-child { display: block; }
.svh-aufmacher--bereit .svh-folie--aktiv { display: block; }

.svh-folie {
	position: relative;
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	padding: 104px 6%;
	animation: svh-einblenden .5s ease;
}
@keyframes svh-einblenden { from { opacity: 0; } to { opacity: 1; } }

.svh-folie__karte {
	max-width: 620px;
	background: rgba(250, 247, 242, 0.94);
	border-radius: 6px;
	padding: 42px 42px 34px;
}
.svh-folie__oben {
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 12px !important;
	color: var(--svh-tinte-weich) !important;
}
.svh-folie__karte h1,
.svh-folie__karte h2 {
	font-family: var(--svh-titel);
	font-weight: 700;
	font-size: clamp(28px, 3.6vw, 46px);
	line-height: 1.15;
	letter-spacing: -0.015em;
	color: var(--svh-tinte);
	margin: 0 0 14px;
}
.svh-folie__knoepfe {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px !important;
}
/* Doppelte Klasse im Selektor, damit die Regel unabhaengig davon gewinnt,
   wo .svh-knopf in dieser Datei steht. */
.svh-knopf.svh-knopf--leise {
	background: transparent;
	color: var(--svh-tinte) !important;
	box-shadow: inset 0 0 0 1.5px var(--svh-linie);
}
.svh-knopf.svh-knopf--leise:hover {
	background: var(--svh-sand);
	color: var(--svh-tinte) !important;
	box-shadow: inset 0 0 0 1.5px var(--svh-terra);
}

.svh-aufmacher__bedienung {
	position: absolute;
	right: 6%;
	bottom: 26px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.svh-aufmacher__pfeil {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(250, 247, 242, 0.9);
	color: var(--svh-tinte);
	cursor: pointer;
	padding: 0;
}
.svh-aufmacher__pfeil:hover { background: #fff; color: var(--svh-terra); }
.svh-aufmacher__punkte { display: flex; gap: 7px; }
.svh-aufmacher__punkt {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(250, 247, 242, 0.6);
	cursor: pointer;
}
.svh-aufmacher__punkt--aktiv { background: var(--svh-terra); }

@media (max-width: 700px) {
	.svh-folie { padding: 56px 6% 72px; }
	.svh-folie__karte { padding: 28px 24px 24px; }
	.svh-aufmacher__bedienung { right: 50%; transform: translateX(50%); bottom: 18px; }
}

/* ---------- Grundlage der Abschnitte ---------- */

.svh-abschnitt {
	font-family: var(--svh-text);
	color: var(--svh-tinte);
	background: var(--svh-papier);
	font-size: 17px;
	line-height: 1.65;
}
.svh-abschnitt--sand { background: var(--svh-sand); }

.svh-abschnitt .wpb_text_column,
.svh-abschnitt .wpb_content_element { margin-bottom: 0; }

.svh-abschnitt h2,
.svh-abschnitt h3 {
	font-family: var(--svh-titel);
	color: var(--svh-tinte);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.015em;
	text-transform: none;
	margin: 0;
}
.svh-abschnitt h2 { font-size: clamp(26px, 3.4vw, 40px); }
.svh-abschnitt h3 { font-size: 20px; }

.svh-abschnitt p { margin: 0 0 14px; color: var(--svh-tinte-weich); }
.svh-abschnitt p:last-child { margin-bottom: 0; }

.svh-abschnitt a { color: var(--svh-terra); text-decoration: none; }
.svh-abschnitt a:hover { color: var(--svh-terra-dunkel); text-decoration: underline; }

.svh-kopf {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 28px;
	margin-bottom: 26px;
}
.svh-mehr {
	font-family: var(--svh-titel);
	font-weight: 600;
	font-size: 15px;
	white-space: nowrap;
}
.svh-satz {
	max-width: 62ch;
	font-size: 18px;
	margin-bottom: 28px !important;
}
.svh-klein { font-size: 15px; color: var(--svh-grau) !important; }

.svh-knopf {
	display: inline-block;
	font-family: var(--svh-titel);
	font-weight: 600;
	font-size: 16px;
	color: #fff !important;
	background: var(--svh-terra);
	padding: 12px 26px;
	border-radius: 999px;
	text-decoration: none !important;
}
.svh-knopf:hover { background: var(--svh-terra-dunkel); color: #fff !important; }

/* ---------- Gottesdienstzeiten ---------- */

.svh-zeitliste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 1px;
	background: var(--svh-linie);
	border: 1px solid var(--svh-linie);
	border-radius: 6px;
	overflow: hidden;
}
.svh-zeitliste li {
	background: var(--svh-flaeche);
	padding: 26px 24px;
	margin: 0;
	display: grid;
	gap: 4px;
	align-content: start;
}
.svh-uhr {
	font-family: var(--svh-titel);
	font-weight: 700;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--svh-terra);
	font-variant-numeric: tabular-nums;
}
.svh-uhr--klein { font-size: clamp(20px, 2.4vw, 26px); }
.svh-wann { color: var(--svh-tinte-weich); font-size: 16px; }

/* ---------- Hinweiskasten ---------- */

.svh-hinweis {
	padding: 20px 24px;
	background: var(--svh-flaeche);
	border: 1px dashed var(--svh-linie);
	border-radius: 6px;
	color: var(--svh-grau) !important;
	margin: 0 !important;
}

/* ---------- Terminliste aus ChurchTools ---------- */

.svh-termine {
	list-style: none;
	margin: 0;
	padding: 0;
}
.svh-termin {
	display: grid;
	grid-template-columns: 74px 1fr auto;
	gap: 22px;
	align-items: baseline;
	padding: 17px 0;
	margin: 0;
	border-top: 1px solid var(--svh-linie);
}
.svh-termin:first-child { border-top: 0; padding-top: 4px; }

.svh-termin__datum { display: grid; gap: 3px; }
.svh-termin__tag {
	font-family: var(--svh-titel);
	font-weight: 700;
	font-size: 26px;
	line-height: 1;
	color: var(--svh-tinte);
	font-variant-numeric: tabular-nums;
}
.svh-termin__monat {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--svh-grau);
}

.svh-termin__mitte { display: grid; gap: 3px; min-width: 0; }
.svh-termin__titel {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--svh-tinte);
}
.svh-termin__ort { font-size: 15px; color: var(--svh-grau); }

.svh-termin__zeit {
	display: grid;
	justify-items: end;
	gap: 2px;
	white-space: nowrap;
}
.svh-termin__wochentag {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--svh-grau);
}
.svh-termin__uhr {
	font-size: 17px;
	color: var(--svh-tinte-weich);
	font-variant-numeric: tabular-nums;
}
.svh-termin__uhr--ganztags { font-size: 14px; font-style: italic; }

.svh-termine__fuss {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 16px 0 0 !important;
	padding-top: 14px;
	border-top: 1px solid var(--svh-linie);
	font-size: 13.5px;
	color: var(--svh-grau) !important;
}
.svh-termine__fuss svg { flex: 0 0 auto; }

/* ---------- Livestream ---------- */

.svh-zwei {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 28px;
	align-items: start;
}
.svh-stream {
	background: var(--svh-tinte);
	color: #d8d0c4;
	border-radius: 6px;
	padding: 32px 28px;
	min-height: 200px;
	display: grid;
	align-content: center;
	justify-items: center;
	text-align: center;
	gap: 8px;
}
.svh-stream-schloss { display: block; color: #6b6459; line-height: 0; margin-bottom: 4px; }
.svh-stream-next small { display: block; margin-top: 5px; }
.svh-stream p { color: #d8d0c4; }
.svh-stream-status {
	font-family: var(--svh-titel);
	font-weight: 700;
	font-size: 19px;
	color: #f0ece5 !important;
	margin: 0 0 4px !important;
}
.svh-stream-punkt {
	display: inline-block;
	width: 9px; height: 9px;
	border-radius: 50%;
	background: #6b6459;
	margin-right: 9px;
	vertical-align: middle;
}
.svh-stream small { display: block; color: #a8a08f; font-size: 14px; }

/* ---------- Karten (Gruppen, Fragen, Dienste) ---------- */

.svh-karten {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 18px;
}
.svh-karten > li {
	background: var(--svh-flaeche);
	border: 1px solid var(--svh-linie);
	border-radius: 6px;
	padding: 24px;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.svh-karten > li p { font-size: 16px; }
.svh-karten > li > a:last-child {
	margin-top: auto;
	padding-top: 10px;
	font-family: var(--svh-titel);
	font-weight: 600;
	font-size: 15px;
}
.svh-karten img { max-width: 150px; height: auto; }

/* Gruppen: Akzentkante oben statt Rahmen */
.svh-gruppen > li {
	border: 0;
	border-top: 3px solid var(--svh-terra);
	border-radius: 0;
	background: transparent;
	padding: 16px 0 0;
}

/* Fragen an Erstbesucher: ohne Rahmen, mit Nummer */
.svh-fragen > li {
	background: transparent;
	border: 0;
	border-left: 2px solid var(--svh-linie);
	border-radius: 0;
	padding: 2px 0 2px 20px;
}

/* ---------- Gruppen-Kacheln (EC, Internationale Arbeit) ---------- */

.svh-gruppenkacheln { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.svh-gruppenkachel .karte__zeit {
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--svh-linie);
	font-variant-numeric: tabular-nums;
	font-size: 15px;
	color: var(--svh-tinte) !important;
}
.svh-gruppenkachel__leitung {
	font-size: 15px;
	color: var(--svh-tinte-weich) !important;
}

/* ---------- Videos vom YouTube-Kanal ---------- */

.svh-videos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.svh-video { gap: 6px; }
.svh-video__zeichen { color: var(--svh-terra); line-height: 0; }
.svh-video .karte__name { font-size: 18px; line-height: 1.35; }
.svh-video .karte__name a { color: var(--svh-tinte); text-decoration: none; }
.svh-video .karte__name a:hover { color: var(--svh-terra); text-decoration: underline; }
.svh-video__wann { margin: 0 !important; font-size: 14px; color: var(--svh-grau) !important; }
.svh-video__marke {
	display: inline-block;
	margin-left: 8px;
	padding: 1px 8px;
	border-radius: 999px;
	background: var(--svh-sand);
	color: var(--svh-tinte-weich);
	font-size: 12px;
	letter-spacing: .03em;
}

/* ---------- GNADE-Karten und Kalender ---------- */

.svh-gnade > li { position: relative; padding-left: 0; }
.svh-gnade__buchstabe {
	display: inline-grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: var(--svh-terra);
	color: #fff;
	font-family: var(--svh-titel);
	font-weight: 700;
	font-size: 19px;
	margin-bottom: 4px;
}
.svh-gnade__ich {
	margin-top: auto !important;
	padding-top: 10px;
	border-top: 1px solid var(--svh-linie);
	font-style: italic;
	font-size: 15px;
	color: var(--svh-grau) !important;
}
.svh-kalender {
	border: 1px solid var(--svh-linie);
	border-radius: 6px;
	overflow: hidden;
	background: var(--svh-flaeche);
}
.svh-kalender iframe { display: block; width: 100%; border: 0; }

/* ---------- Bildbaender ---------- */

.svh-abschnitt--bild { padding: 0 !important; background: var(--svh-tinte); }
.svh-abschnitt--bild .vc_column-inner,
.svh-abschnitt--bild .wpb_wrapper,
.svh-abschnitt--bild .wpb_text_column { padding: 0 !important; margin: 0 !important; }

.svh-bildband { margin: 0; position: relative; }
.svh-bildband img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 1;
	object-fit: cover;
	object-position: center;
}
.svh-bildband figcaption {
	position: absolute;
	left: 6%;
	bottom: 20px;
	max-width: 46ch;
	padding: 9px 16px;
	border-radius: 4px;
	background: rgba(35, 32, 28, 0.72);
	color: #f0ece5;
	font-size: 15px;
	line-height: 1.4;
}
@media (max-width: 700px) {
	.svh-bildband img { aspect-ratio: 4 / 3; }
	.svh-bildband figcaption { left: 0; right: 0; bottom: 0; border-radius: 0; max-width: none; }
}

/* ---------- Livestream-Liste auf /tv/ (bestehendes Skript) ----------
   Das Skript vergibt datePast / dateCurrent / dateNext / dateFuture.
   dateFuture bleibt ueber style.css verborgen (mehr als 7 Tage voraus). */

.svh-livestream-liste #ytEventsUl { list-style: none; margin: 0; padding: 0; }
.svh-livestream-liste #ytEventsUl li {
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid var(--svh-linie);
	font-size: 17px;
	font-variant-numeric: tabular-nums;
}
.svh-livestream-liste #ytEventsUl li:first-child { border-top: 0; }
.svh-livestream-liste #ytEventsUl a { color: var(--svh-tinte); text-decoration: none; }
.svh-livestream-liste #ytEventsUl a:hover { color: var(--svh-terra); text-decoration: underline; }
.svh-livestream-liste #ytEventsUl li.dateCurrent a {
	font-weight: 700 !important;
	text-decoration: none !important;
	color: var(--svh-terra) !important;
}
.svh-livestream-liste #ytEventsUl li.dateCurrent a::before {
	content: "";
	display: inline-block;
	width: 9px; height: 9px;
	border-radius: 50%;
	background: var(--svh-terra);
	margin-right: 10px;
	vertical-align: middle;
}
.svh-livestream-liste #ytEventsUl li.dateNext a { color: var(--svh-grau) !important; }
.svh-livestream-liste #ytEventsUl li.datePast { color: var(--svh-grau); }
.svh-livestream-liste #ytEventsUl li.datePast a { color: var(--svh-tinte-weich); }

/* ---------- Sichtbarer Platzhalter fuer fehlende Daten ----------
   Absichtlich auffaellig: hier muss in ChurchTools etwas nachgetragen werden.
   Erscheint auf der Dev-Umgebung, damit niemand die Luecke uebersieht. */
.svh-fehlt {
	display: inline-block;
	padding: 2px 9px;
	border: 1px dashed var(--svh-terra);
	border-radius: 4px;
	background: rgba(168, 72, 42, 0.06);
	color: var(--svh-terra);
	font-size: 13px;
	font-style: italic;
	letter-spacing: .01em;
}
.karte__ort { color: var(--svh-grau); }

/* ---------- Dienste am Seitenfuss ---------- */

.svh-bank {
	font-variant-numeric: tabular-nums;
	font-size: 15px;
	color: var(--svh-tinte-weich) !important;
	line-height: 1.6;
}
.svh-abzeichen {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 4px;
}
.svh-abzeichen img { max-width: 132px; }

/* ---------- Anfahrt ---------- */

.svh-anfahrt-raster {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 28px;
}
.svh-adresse {
	font-family: var(--svh-titel);
	font-weight: 600;
	font-size: 20px;
	color: var(--svh-tinte) !important;
	line-height: 1.45;
}

@media (max-width: 600px) {
	.svh-abschnitt h2 { font-size: 26px; }
	.svh-kopf { margin-bottom: 18px; }
}
