/*
Theme Name: Einen Moment Bitte
Theme URI: https://einen-moment-bitte.de
Author: Ralf Pfau
Description: Schlankes Block-Theme fÃ¼r â€žEinen Moment Bitteâ€œ. Dunkles Design mit Gold-Akzent, Manrope und Space Grotesk. Funktionen (Collage, Vertiefungen, Akzentfarbe) liefert das Plugin â€žEMB Baukastenâ€œ.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
Version: 1.3.2
License: GPL-2.0-or-later
Text Domain: einen-moment-bitte
*/

/* Nur was theme.json nicht abbilden kann. --emb-accent setzt das Plugin pro Seite. */

:root {
	color-scheme: dark;
	--emb-gold: var(--wp--preset--color--gold);
	--emb-linie: var(--wp--preset--color--linie);
	--emb-rand: max(20px, 4vw);          /* seitlicher Innenabstand */
	--emb-header-hoehe: 92px;
}
body {
	--emb-akzent: var(--emb-accent, var(--emb-gold));
	min-width: 320px;
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
html { scroll-behavior: smooth; }

/* Feine Rauschtextur Ã¼ber der ganzen Seite */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	opacity: .055;
	z-index: 20;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.wp-site-blocks > * + * { margin-block-start: 0; }

/* Überschriften nie automatisch trennen */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.wp-block-post-title { hyphens: manual; -webkit-hyphens: manual; }
img { max-width: 100%; height: auto; }

/* ---------- Allgemein ---------- */
.emb-container {
	box-sizing: border-box;
	width: 100%;
	max-width: 1800px;
	margin-inline: auto;
	padding-inline: var(--emb-rand);
}
.emb-eyebrow {
	color: var(--emb-gold);
	text-transform: uppercase;
	letter-spacing: .2em;
	font-size: 13px;
	font-weight: 700;
}
.emb-akzent { color: var(--emb-akzent); }

/* ---------- Kopfbereich ---------- */
.emb-header {
	position: relative;
	z-index: 30;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
/* Unschärfe auf eigener Ebene: backdrop-filter direkt am Kopfbereich würde das
   fixierte Burger-Overlay auf die Höhe des Kopfbereichs beschränken. */
.emb-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(7, 7, 7, .86);
	backdrop-filter: blur(14px);
}
.emb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 22px;
	font-size: 20px;
}
.emb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start;
}
.emb-header__innen {
	height: var(--emb-header-hoehe);
	gap: 24px;
}
.emb-brand { gap: 16px; min-width: 0; align-items: center !important; }
.emb-brand .wp-block-site-logo { flex: 0 0 auto; line-height: 0; display: flex; align-items: center; }
.emb-brand .wp-block-site-logo a { display: block; line-height: 0; }
.emb-brand .wp-block-site-logo img {
	filter: grayscale(1) brightness(3.2) contrast(1.25);
}
.emb-brand .wp-block-site-title {
	margin: 0 !important;
	line-height: 1;
	display: flex;
	align-items: center;
	white-space: nowrap;
	text-shadow: .6px 0 var(--emb-gold);
	color: #fff;
}
.emb-brand .wp-block-site-title a { color: inherit; }
.emb-brand--gross .wp-block-site-title { font-size: 16px; }
.emb-header__menue { gap: 36px; flex: 0 1 auto; min-width: 0; }
.emb-header .wp-block-navigation__container { flex-wrap: nowrap; white-space: nowrap; }
.emb-header .wp-block-navigation a:hover,
.emb-header .wp-block-navigation .current-menu-item > a { color: var(--emb-gold); }
.emb-header__suche { flex: 0 0 auto; }
.emb-header__suche .wp-block-search__inside-wrapper {
	border: 0;
	padding: 0;
	gap: 8px;
}
.emb-header__suche .wp-block-search__button {
	background: rgba(255, 255, 255, .05);
	border: 1px solid var(--emb-linie);
	border-radius: 50%;
	width: 44px;
	height: 44px;
	min-width: 44px;
	padding: 0;
	margin: 0;
	color: #ece9e3;
	display: grid;
	place-items: center;
}
.emb-header__suche .wp-block-search__button svg { fill: currentColor; }
.emb-header__suche .wp-block-search__input {
	background: #0d0d0d;
	color: #fff;
	border: 1px solid var(--emb-linie);
	border-radius: 22px;
	padding-inline: 16px;
	height: 44px;
	width: 220px;
}
.emb-header__suche.wp-block-search__searchfield-hidden .wp-block-search__input {
	width: 0;
	padding: 0;
	border-width: 0;
}
.wp-block-navigation__responsive-container.is-menu-open {
	background: #0d0d0d !important;
	color: #ece9e3 !important;
	padding: 90px var(--emb-rand) 40px !important;
}

/* ---------- Hauptseiten: Intro + Collage ---------- */
.emb-intro {
	min-height: 72vh;
	padding-block: 11vh 8vh;
	display: grid;
	place-content: center;
	text-align: center;
	background: radial-gradient(circle at 50% 40%, rgba(220, 182, 93, .10), transparent 31%);
}
.emb-intro .emb-eyebrow { margin: 0; }
.emb-intro__titel {
	font: 400 var(--wp--preset--font-size--riesig)/.86 var(--wp--preset--font-family--space-grotesk);
	letter-spacing: -.06em;
	margin: 30px 0 38px;
	text-transform: uppercase;
	max-width: none !important;   /* nicht auf die Inhaltsbreite von 780px begrenzen */
}
.emb-intro__titel mark { font-weight: 300; }
.emb-intro__text {
	max-width: 750px;
	margin-inline: auto;
	color: #d1cec7;
	font-size: var(--wp--preset--font-size--mittel);
	line-height: 1.75;
}
.emb-scroll-hinweis {
	margin: 9vh auto 0;
	color: var(--wp--preset--color--grau);
	font-size: 11px;
	letter-spacing: .17em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.emb-scroll-hinweis::before {
	content: "";
	width: 34px;
	height: 1px;
	background: var(--emb-gold);
}

/* ---------- Startseite (Vorlage „EMB Startseite – Layout 2 / Nachtmeer“) ---------- */
.emb-start {
	--emb-s-gold: #e4b95f;
	--emb-s-weiss: #f9f8f6;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: #030a12;
	color: var(--emb-s-weiss);
	padding-bottom: 90px;
	-webkit-font-smoothing: antialiased;
}
/* Wasser-Fortsetzung (wiederholt) – .scene::before der Vorlage */
.emb-start::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .05) 50%, rgba(1, 9, 16, .26) 100%),
		url("assets/startseite/wasser-fortsetzung.jpg");
	background-image:
		linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .05) 50%, rgba(1, 9, 16, .26) 100%),
		image-set(url("assets/startseite/wasser-fortsetzung.webp") type("image/webp"), url("assets/startseite/wasser-fortsetzung.jpg") type("image/jpeg"));
	background-size: 100% auto, 100% 295px;
	background-repeat: no-repeat, repeat-y;
	background-position: top, top;
}
/* Nachtmeer mit Maske – .scene::after der Vorlage (Abstand relativ zum Header umgerechnet) */
.emb-start::after {
	content: "";
	position: absolute;
	top: 23px;               /* Vorlage: 110px ab Seitenanfang, Header 87px */
	left: 0;
	right: 0;
	height: 1100px;
	z-index: -1;
	pointer-events: none;
	background-image: url("assets/startseite/nachtmeer.jpg");
	background-image: image-set(url("assets/startseite/nachtmeer.webp") type("image/webp"), url("assets/startseite/nachtmeer.jpg") type("image/jpeg"));
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: center top;
	-webkit-mask-image: linear-gradient(180deg, black 0%, black 83%, transparent 100%);
	mask-image: linear-gradient(180deg, black 0%, black 83%, transparent 100%);
}
.emb-start, .emb-start * { box-sizing: border-box; } /* wie in der Vorlage */
.emb-start__inhalt {
	width: min(100% - 40px, 960px);
	margin-inline: auto;
}
.emb-start__inhalt > * { margin-block: 0; }

.emb-start__hero { text-align: center; padding-top: 12px; }
.emb-start .emb-start__titel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin: 0;
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: clamp(43px, 12vw, 76px);
	letter-spacing: -.055em;
	line-height: 1.1;
	font-weight: 500;
	color: var(--emb-s-gold);
	white-space: nowrap;
	text-transform: none;
}
.emb-start .emb-start__titel::before,
.emb-start .emb-start__titel::after {
	content: "";
	height: 1px;
	flex: 1;
	max-width: 72px;
	background: linear-gradient(to right, transparent, var(--emb-s-gold));
}
.emb-start .emb-start__titel::after { transform: rotate(180deg); }
.emb-start .emb-start__untertitel {
	margin: 19px auto 0;
	font-size: clamp(13px, 3.65vw, 17px);
	font-weight: 400;
	line-height: 1.6;
	max-width: 64ch;
	text-wrap: balance;
	color: var(--emb-s-weiss);
}

.emb-start .emb-zugaenge { margin-top: 106px; }   /* .ocean-space */

.emb-start__blurb { text-align: center; padding-top: 77px; }
.emb-start__blurb--zweit { padding-top: 85px; }
.emb-start .emb-start__blurb h2 {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-weight: 500;
	font-size: clamp(24px, 6vw, 33px);
	line-height: 1.25;
	letter-spacing: -.025em;
	margin: 0 0 13px;
	text-wrap: balance;
	color: var(--emb-s-weiss);
}
.emb-start .emb-start__blurb p {
	font-size: clamp(13px, 3.3vw, 16px);
	line-height: 1.65;
	margin: 0 auto;
	max-width: 55ch;
	text-wrap: balance;
}
.emb-start .wp-block-buttons { justify-content: center; margin-top: 22px; gap: 12px; }
.emb-start .emb-pill .wp-block-button__link {
	display: inline-flex;
	gap: 20px;
	align-items: center;
	justify-content: center;
	min-width: 182px;
	padding: 10px 25px 9px;
	border: 1.4px solid var(--emb-s-gold);
	border-radius: 99px;
	background: transparent;
	color: var(--emb-s-gold);
	font: 600 12px var(--wp--preset--font-family--space-grotesk);
	letter-spacing: .18em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s;
	-webkit-tap-highlight-color: transparent;
}
.emb-start .emb-pill .wp-block-button__link::after {
	content: "→";
	font-size: 18px;
	line-height: 1;
	letter-spacing: 0;
}
.emb-start .emb-pill .wp-block-button__link:focus-visible {
	outline: 2px solid var(--emb-s-gold);
	outline-offset: 3px;
	background: #e4b95f22;
}
@media (hover: hover) {
	.emb-start .emb-pill .wp-block-button__link:hover { background: #e4b95f22; color: var(--emb-s-gold); }
}

@media (min-width: 700px) {
	.emb-start::after { top: -69px; height: 1700px; }   /* Vorlage: top 30px, Header 99px */
	.emb-start__hero { padding-top: 36px; }
	.emb-start .emb-start__untertitel { font-size: 18px; }
	.emb-start .emb-zugaenge { margin-top: 135px; }
	.emb-start__blurb { padding-top: 95px; }
	.emb-start__blurb--zweit { padding-top: 92px; }
	.emb-start .emb-start__blurb h2 { font-size: 34px; }
}
@media (max-width: 360px) {
	.emb-start__inhalt { width: calc(100% - 26px); }
	.emb-start .emb-start__titel { font-size: 40px; gap: 8px; }
}

/* ---------- Unterseite: Hero (zweispaltig wie topic-hero der Vorlage) ---------- */
.emb-hero {
	display: grid;
	grid-template-columns: 45% 55%;
	height: clamp(560px, calc(100vh - var(--emb-header-hoehe)), 900px);
	border-bottom: 1px solid var(--emb-linie);
}
.emb-hero > * { margin: 0 !important; }
.emb-hero__bild {
	position: relative;
	height: 100%;
	overflow: hidden;
}
.emb-hero__bild img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	filter: saturate(.8);
	transform: scale(1.02);
}
.emb-hero__bild::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(90deg, transparent 55%, #070707 100%),
		linear-gradient(0deg, rgba(7, 7, 7, .4), transparent 60%);
}
.emb-hero__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 80px 8vw 80px 9%;
	max-width: 850px;
	box-sizing: border-box;
}
.emb-hero__titel {
	margin: 0 0 32px;
	/* so groÃŸ wie in der Vorlage, aber hÃ¶chstens so, dass ein langes Wort in die Textspalte passt */
	font: 400 min(var(--wp--preset--font-size--titel), 5.4vw)/.93 var(--wp--preset--font-family--space-grotesk);
	text-transform: uppercase;
	letter-spacing: -.06em;
	color: var(--emb-akzent);
	overflow-wrap: break-word;
	hyphens: manual;
}
.emb-hero__intro p {
	max-width: 650px;
	margin: 0;
	color: #c4c0b7;
	font-size: var(--wp--preset--font-size--mittel);
	line-height: 1.75;
}

/* ---------- Unterseite: Vertiefungen ---------- */
.emb-abschnitt {
	padding: 130px 7vw 150px;
	max-width: 1650px;
	margin-inline: auto;
}
.emb-abschnitt__kopf { max-width: 670px; margin-bottom: 65px; }
.emb-abschnitt__titel {
	font-size: var(--wp--preset--font-size--sehr-gross);
	line-height: 1;
	letter-spacing: -.05em;
	margin: 0 0 24px;
}
.emb-abschnitt__unterzeile { color: var(--wp--preset--color--sanft); line-height: 1.7; margin: 0; }

/* ---------- Artikel: eine zentrierte Lesespalte ---------- */
.emb-artikel {
	background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--emb-akzent), transparent 91%), transparent 25%);
}
.emb-spalte {
	box-sizing: content-box;
	max-width: 760px;
	margin-inline: auto;
	padding: 90px 20px 110px;
	text-align: left;
}
.emb-spalte > * { margin-block: 0; }
.emb-spalte .emb-zurueck--kopf { margin-bottom: 28px; }
.emb-spalte .emb-zurueck__link { margin-bottom: 70px; }
.emb-artikel__titel {
	font-family: var(--wp--preset--font-family--space-grotesk);
	font-size: clamp(42px, 6vw, 76px);
	font-weight: 400;
	letter-spacing: -.05em;
	line-height: 1.02;
	margin: 22px 0 30px !important;
	overflow-wrap: break-word;
	text-wrap: balance;
}
.emb-artikel__dek {
	font-size: clamp(18px, 1.7vw, 22px);
	line-height: 1.7;
	color: #bcb8b0;
}
.emb-artikel__dek p { margin: 0; }
.emb-prosa {
	padding-block: 50px 0;
	color: #d0cdc6;
}
.emb-prosa > * { max-width: 100%; }
.emb-prosa p {
	font-size: 18px;
	line-height: 1.9;
	overflow-wrap: break-word;
}
.emb-prosa p.emb-initiale::first-letter {
	float: left;
	font: 400 76px/.78 var(--wp--preset--font-family--space-grotesk);
	color: var(--emb-akzent);
	padding: 9px 12px 2px 0;
}
.emb-prosa h2 {
	color: #fff;
	margin: 70px 0 25px;
}
.emb-prosa h3 {
	color: #fff;
	font-size: 26px;
	line-height: 1.25;
	letter-spacing: -.02em;
	margin: 50px 0 18px;
}
.emb-prosa hr { margin-block: 50px; border-color: var(--emb-linie); }
.emb-prosa ul,
.emb-prosa ol { line-height: 1.8; padding-left: 1.2em; }
.emb-prosa li::marker { color: var(--emb-akzent); }
.emb-prosa .emb-quelle {
	border-top: 1px solid var(--emb-linie);
	margin-top: 80px;
	padding-top: 20px;
	color: #77746e;
	font-size: 12px;
	letter-spacing: .08em;
	line-height: 1.6;
}
.emb-artikel__ende {
	border-top: 1px solid var(--emb-linie);
	margin-top: 70px !important;
	padding-top: 60px;
}
.emb-artikel__ende p { color: var(--wp--preset--color--sanft); font-size: 17px; margin: 24px 0 0; }
.emb-artikel__enso { line-height: 0; }

/* ---------- Einfache Seiten, Listen, Suche ---------- */
.emb-seite { padding-block: 110px 120px; }
.emb-seite__titel { margin-bottom: 40px; }
.emb-liste-seite { padding-block: 110px 120px; }
.emb-liste-seite__titel,
.emb-suche__titel { margin-bottom: 50px; }
.emb-liste .wp-block-post-template { gap: 1px; background: var(--emb-linie); }
.emb-liste__karte {
	background: var(--wp--preset--color--schwarz);
	padding: 30px 28px;
	height: 100%;
}
.emb-liste__kategorie {
	color: var(--emb-gold);
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: 12px;
}
.emb-liste__titel { font-size: 24px; letter-spacing: -.03em; margin: 12px 0; }
.emb-liste .wp-block-post-excerpt { font-size: 14px; line-height: 1.6; }
.emb-suche__feld .wp-block-search__input {
	background: none;
	border: 0;
	border-bottom: 1px solid #75716a;
	color: #fff;
	font: 400 clamp(24px, 4vw, 54px) var(--wp--preset--font-family--space-grotesk);
	letter-spacing: -.04em;
	padding: 18px 0;
}
.emb-suche__feld .wp-block-search__input::placeholder { color: #55534f; }
.emb-suche__feld .wp-block-search__button {
	background: none;
	border: 0;
	color: var(--emb-gold);
}

/* ---------- FuÃŸbereich: zentriert, untereinander ---------- */
.emb-footer { border-top: 1px solid var(--emb-linie); }
.emb-footer__innen {
	padding-block: 90px 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 22px;
}
.emb-footer__innen > * { margin: 0 !important; }
.emb-footer__text {
	color: #85817b;
	font-size: 14px;
	max-width: 420px;
	line-height: 1.7;
}
.emb-footer__link a {
	color: var(--emb-gold);
	text-transform: uppercase;
	letter-spacing: .12em;
	font-size: 12px;
}

/* ---------- Menü: unter 1180px als Burger-Menü statt Umbruch (8 Menüpunkte brauchen ca. 1150px) ---------- */
@media (min-width: 600px) and (max-width: 1179px) {
	.emb-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.emb-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.emb-header .wp-block-navigation__responsive-container.is-menu-open { display: flex; }
	.emb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex; }
	.emb-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: flex-start; }
}

/* ---------- Großer Bildschirm: Themen-Titel darf breiter laufen ---------- */
@media (min-width: 1200px) {
	/* Bisher begrenzte max-width: 850px die Textspalte auf ca. 600px. Jetzt nutzt
	   der Titel die ganze rechte Spalte bis 3vw vor den Rand (bei 1920px ca. 950px,
	   also gut 55–60 % mehr); Titel und Einleitung beginnen an derselben Kante. */
	.emb-hero__text { max-width: none; padding-left: 6%; padding-right: 3vw; }
	.emb-hero__intro p { max-width: 600px; }
	.emb-hero__titel { max-width: 1020px; text-wrap: balance; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
	.emb-hero { grid-template-columns: 45% 55%; }
	.emb-hero__text { padding: 60px 6vw 60px 7%; }
}

/* ---------- Handy ---------- */
@media (max-width: 760px) {
	:root { --emb-header-hoehe: 76px; }
	.emb-header .emb-brand { gap: 10px; }
	.emb-header .wp-block-site-logo img { width: 42px !important; height: auto; }
	.emb-header .wp-block-site-title { font-size: 11px; letter-spacing: .1em; }
	.emb-header__innen { gap: 12px; }
	.emb-header__menue { gap: 10px; }
	.emb-header__suche .wp-block-search__input { width: 150px; }
	.emb-intro { min-height: 75vh; padding-block: 10vh 8vh; padding-inline: 20px !important; }
	.emb-hero__titel { font-size: min(var(--wp--preset--font-size--titel), 12vw); }
	.emb-hero { display: flex; flex-direction: column; height: auto; }
	.emb-hero__bild { height: 52vh; min-height: 300px; }
	.emb-hero__bild::after { background: linear-gradient(0deg, #070707, transparent 50%); }
	.emb-hero__text { padding: 30px 20px 60px; max-width: none; }
	.emb-hero__intro p { font-size: 19px; line-height: 1.72; }
	.emb-abschnitt { padding: 80px 20px; }
	.emb-abschnitt__unterzeile { font-size: 18px; }
	.emb-spalte { padding: 50px 20px 80px; }
	.emb-spalte .emb-zurueck__link { margin-bottom: 50px; }
	.emb-prosa { padding-top: 35px; }
	.emb-prosa p { font-size: 19px; line-height: 1.8; }
	.emb-prosa h2 { font-size: 30px; }
	.emb-prosa h3 { font-size: 23px; }
	.emb-prosa .emb-quelle { font-size: 13px; line-height: 1.55; }
	.emb-footer__innen { padding-block: 70px 50px; }
	.emb-footer__text { font-size: 15px; }
	.emb-liste .wp-block-post-template { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
