/*
Theme Name: sein Cafe & mehr
Description: Child-Theme von Twenty Twenty-Five fuer das Cafe SEIN der Mino Aarau. Uebernimmt Anmutung und Typografie der bisherigen Website (schwarz/weiss, schmale Linienschrift, Logo links, Tageszeit-Navigation oben).
Author: alixon
Template: twentytwentyfive
Version: 1.0.2
Requires at least: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: seinaarau
*/

/* ---------------------------------------------------------------
 * Grundraster wie bisher: links Logo + Navigation (123 px),
 * rechts Inhalt (690 px), zusammen 1030 px.
 * ------------------------------------------------------------- */
.sn-shell,
.sn-fuss-raster {
	display: grid;
	grid-template-columns: 123px minmax(0, 690px);
	justify-content: space-between;
	align-items: start;
	max-width: 1030px;
	margin: 0 auto;
	padding: 0 16px;
}

.sn-shell > *,
.sn-fuss-raster > *,
.sn-spalte-inhalt > * {
	margin-block-start: 0 !important;
}

.sn-spalte-inhalt {
	padding-bottom: 48px;
}

/* ---------------------------------------------------------------
 * Linke Spalte: Logo und Navigation
 * ------------------------------------------------------------- */
.sn-kopf .wp-block-site-logo img {
	display: block;
	height: auto;
}

.sn-kopf .wp-block-navigation {
	margin-top: 46px;
	text-align: center;
}

.sn-kopf .wp-block-navigation .current-menu-item > a {
	color: var(--wp--preset--color--accent-2);
}

/* ---------------------------------------------------------------
 * Tageszeit-Navigation ueber dem Inhalt; beim Ueberfahren und auf
 * der aktiven Seite erscheint darueber "Cafe & mehr".
 * ------------------------------------------------------------- */
.sn-tageszeit {
	padding-top: 75px;
}

.sn-tageszeit .wp-block-navigation-item__content {
	position: relative;
}

.sn-tageszeit .wp-block-navigation-item__content::before {
	content: "Café & mehr";
	position: absolute;
	top: -25px;
	left: 0;
	white-space: nowrap;
	color: var(--wp--preset--color--accent-1);
	visibility: hidden;
}

.sn-tageszeit .wp-block-navigation-item__content:hover::before,
.sn-tageszeit .wp-block-navigation-item__content:focus::before,
.sn-tageszeit .current-menu-item > .wp-block-navigation-item__content::before {
	visibility: visible;
}

.sn-tageszeit .current-menu-item > a {
	color: var(--wp--preset--color--accent-1);
}

/* ---------------------------------------------------------------
 * Typografie
 * ------------------------------------------------------------- */

/* Poiret One hat keinen fetten Schnitt; Hervorhebungen in Josefin Sans. */
strong,
b {
	font-family: var(--wp--preset--font-family--josefin-sans);
	font-weight: 600;
}

/* Hover: grau mit gepunkteter Linie (frueher Wechsel auf Lane Cane). */
a:hover,
a:focus-visible {
	text-decoration: underline dotted;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.wp-block-site-logo a:hover,
.wp-block-image a:hover {
	text-decoration: none;
}

/* Seiteneinstieg (zweizeiliger Titel), wie bisher 40/52 px. */
.sn-spalte-inhalt main {
	padding-top: 68px;
}

main h1 {
	line-height: 52px;
}

main h1 + * {
	margin-top: 26px !important;
}

main .wp-block-post-content > h1:first-child,
main .wp-block-post-content > p:first-child + h1 {
	min-height: 104px;
}

.sn-spalte-inhalt p {
	margin-top: 0;
}

/* Hinweis-Links mit Zeigefinger */
.sn-zeiger {
	margin-bottom: 0 !important;
}

.sn-zeiger + :not(.sn-zeiger) {
	margin-top: 26px;
}

/* ---------------------------------------------------------------
 * Events
 * ------------------------------------------------------------- */
.sn-eventliste .wp-block-post-template > li {
	margin-bottom: 52px;
	padding-bottom: 26px;
	border-bottom: 1px solid var(--wp--preset--color--accent-3);
}

.sn-event-datum {
	font-size: var(--wp--preset--font-size--large);
	margin-bottom: 0;
}

.sn-event-datum + .wp-block-post-title {
	margin-top: 0 !important;
}

.wp-block-post-featured-image img {
	width: auto;
	max-width: 100%;
}

/* Mehrere Bilder (z. B. Gaeste am Talk) nebeneinander */
.sn-bilder {
	gap: 20px;
}

.sn-bilder > * {
	margin: 0 !important;
}

/* Kompakte Uebersicht: Datum - Titel - Reihe */
.sn-programm .wp-block-post-template > li {
	margin: 0;
	padding: 6px 0;
	border-bottom: 1px solid var(--wp--preset--color--accent-3);
}

.sn-programm-zeile {
	gap: 4px 20px;
	align-items: baseline;
}

.sn-programm-zeile .wp-block-post-date {
	min-width: 100px;
}

.sn-programm-zeile .wp-block-post-title {
	font-size: var(--wp--preset--font-size--medium);
	line-height: inherit;
	margin: 0;
}

.sn-programm-zeile .wp-block-post-terms {
	margin-left: auto;
}

/* ---------------------------------------------------------------
 * Speis & Trank: Skizze, beim Ueberfahren das Foto
 * ------------------------------------------------------------- */
.sn-skizzen {
	gap: 0;
	overflow-x: auto;
	padding-bottom: 20px;
	scrollbar-color: var(--wp--preset--color--contrast) var(--wp--preset--color--accent-3);
	scrollbar-width: thin;
}

.sn-skizze {
	position: relative;
	flex: none;
}

.sn-skizze > * {
	margin: 0 !important;
}

.sn-skizze img {
	display: block;
	height: 200px;
	width: auto;
}

.sn-skizze figure + figure {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.3s;
}

.sn-skizze:hover figure + figure,
.sn-skizze:focus-within figure + figure {
	opacity: 1;
}

/* ---------------------------------------------------------------
 * Download-Kacheln (Logo + Bezeichnung, weiss umrandet)
 * ------------------------------------------------------------- */
.sn-downloads {
	gap: 20px;
}

.sn-download {
	position: relative;
	padding: 20px 33px 10px;
	border: 1px solid var(--wp--preset--color--contrast);
	text-align: center;
}

.sn-download::after {
	content: "↓";
	position: absolute;
	top: 4px;
	right: 10px;
}

.sn-download > * {
	margin: 0 !important;
}

.sn-download img {
	display: block;
	height: 150px;
	width: auto;
	margin: 0 auto 20px;
}

/* ---------------------------------------------------------------
 * Lageplan
 * ------------------------------------------------------------- */
.sn-karte {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	filter: grayscale(1);
}

/* ---------------------------------------------------------------
 * Fuss: weisse Linie, darunter Credits links und Infos rechts
 * ------------------------------------------------------------- */
.sn-fuss {
	border-top: 5px solid var(--wp--preset--color--contrast);
	padding: 30px 0 40px;
}

.sn-credits {
	text-align: center;
}

/* ---------------------------------------------------------------
 * Kleinere Bildschirme
 * ------------------------------------------------------------- */
@media (max-width: 1062px) {
	.sn-shell,
	.sn-fuss-raster {
		grid-template-columns: 123px minmax(0, 1fr);
		column-gap: 48px;
	}
}

@media (max-width: 700px) {
	.sn-shell {
		display: block;
	}

	.sn-fuss-raster {
		display: flex;
		flex-direction: column;
	}

	.sn-kopf {
		display: flex;
		justify-content: space-between;
		align-items: flex-start;
		padding-top: 16px;
	}

	.sn-kopf .wp-block-site-logo img {
		width: 60px !important;
	}

	.sn-kopf .wp-block-navigation {
		margin-top: 0;
	}

	.sn-tageszeit {
		padding-top: 24px;
	}

	.sn-tageszeit .wp-block-navigation {
		gap: 4px 20px;
	}

	.sn-tageszeit .wp-block-navigation-item__content::before {
		display: none;
	}

	.sn-spalte-inhalt main {
		padding-top: 28px;
	}

	main h1 {
		font-size: 30px;
		line-height: 1.3;
	}

	main .wp-block-post-content > h1:first-child,
	main .wp-block-post-content > p:first-child + h1 {
		min-height: 0;
	}

	.sn-programm-zeile .wp-block-post-terms {
		margin-left: 0;
	}

	.sn-fuss-raster .sn-credits {
		order: 2;
		margin-top: 26px !important;
		text-align: left;
	}
}
