/*
Theme Name: 150 – Stärker als die Zeit
Description: Child-Theme für hundert50.de im Look der Einladungskarte.
Template: twentytwentyfive
Version: 1.3
Requires at least: 6.7
Text Domain: hundert50
License: GNU General Public License v2 or later
*/

:root {
	--h50-nacht: var(--wp--preset--color--base);
	--h50-papier: var(--wp--preset--color--contrast);
	--h50-gold: var(--wp--preset--color--accent-1);
	--h50-hell: var(--wp--preset--color--accent-2);
	--h50-grau: var(--wp--preset--color--accent-3);
	--h50-linie: var(--wp--preset--color--accent-4);
	--h50-feld: var(--wp--preset--color--accent-5);
	--h50-anton: var(--wp--preset--font-family--anton);
}

/* ---------- Seitengerüst ---------- */

.seite-150 {
	margin: 0;
	padding: 0 0 clamp(48px, 8vw, 96px);
}

.seite-150 > * {
	margin-block: 0;
}

/* ---------- Hero wie die Kartenvorderseite ---------- */

.hero {
	--n: clamp(9rem, 27vw, 21rem);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: calc(var(--n) * 0.107);
	min-height: min(100svh, 760px);
	padding: clamp(32px, 6vw, 72px) 24px;
	box-sizing: border-box;
}

.hero > *,
.hero-col > *,
.hero-motto > * {
	margin: 0 !important;
}

.hero-number {
	font-family: var(--h50-anton);
	font-size: var(--n) !important;
	line-height: 0.82 !important;
	letter-spacing: -0.01em !important;
	color: var(--h50-gold) !important;
	text-transform: none !important;
}

.hero-col {
	position: relative;
	align-self: center;
	box-sizing: border-box;
	height: calc(var(--n) * 0.86);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-left: 1px solid var(--h50-linie);
	padding-left: calc(var(--n) * 0.08);
	/* Linie exakt auf Ober- und Unterkante der 150 */
	margin: calc(var(--n) * -0.014) 0 0 !important;
}

.hero-kicker {
	font-size: calc(var(--n) * 0.043);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--h50-hell);
	margin-top: calc(var(--n) * -0.0092) !important;
}

.hero-motto {
	position: absolute;
	left: calc(var(--n) * 0.08);
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	white-space: nowrap;
	font-family: var(--h50-anton);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.05;
}

.hero-motto .motto-1 { font-size: calc(var(--n) * 0.1167); line-height: 1.05; }
.hero-motto .motto-2 { font-size: calc(var(--n) * 0.084); line-height: 1.05; }

.hero-date {
	font-size: calc(var(--n) * 0.0467);
	line-height: 1.5;
	color: var(--h50-hell);
	margin-bottom: calc(var(--n) * -0.0167) !important;
}

/* Platz für das absolut gesetzte Motto rechts neben der Linie */
.hero-col { min-width: calc(var(--n) * 0.44); }

@media (max-width: 720px) {
	.hero {
		--n: 46vw;
		flex-direction: column;
		align-items: flex-start;
		gap: 28px;
		min-height: auto;
		padding-top: 56px;
	}
	.hero-col {
		align-self: auto;
		height: auto;
		border-left: 0;
		padding-left: 0;
		margin: 0 !important;
		gap: 20px;
		min-width: 0;
	}
	.hero-kicker { order: -1; font-size: 0.875rem; margin: 0 !important; }
	.hero-motto { position: static; transform: none; }
	.hero-motto .motto-1 { font-size: 2.6rem; }
	.hero-motto .motto-2 { font-size: 1.875rem; }
	.hero-date { font-size: 1.0625rem; margin: 0 !important; }
}

/* ---------- Inhaltsabschnitte ---------- */

.abschnitt {
	max-width: 720px;
	margin-inline: auto !important;
	padding: clamp(40px, 6vw, 64px) 24px 0;
	box-sizing: border-box;
}

.abschnitt > * {
	margin-block: 0 !important;
}

.abschnitt > * + * {
	margin-top: 0.6em !important;
}

.abschnitt + .abschnitt {
	border-top: 1px solid var(--h50-linie);
	padding-top: clamp(40px, 6vw, 64px);
	margin-top: clamp(40px, 6vw, 64px) !important;
}

.abschnitt h2 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.abschnitt h2.gold {
	color: var(--h50-gold);
	font-size: clamp(2.5rem, 7vw, 4rem);
	text-transform: none;
	line-height: 0.95;
}

.leise {
	color: var(--h50-hell);
}

.klein {
	font-size: 0.9rem;
	color: var(--h50-grau);
}

/* Ablauf: Uhrzeit in Gold, Text daneben */
.ablauf p {
	display: grid;
	grid-template-columns: 6.5em 1fr;
	margin: 0 !important;
	line-height: 1.6;
}

.ablauf p strong {
	font-weight: 400;
	color: var(--h50-gold);
}

.ablauf + p {
	margin-top: 1.2em !important;
}

/* ---------- Anmeldeformular (Fluent Forms) ---------- */

.fluentform .ff-el-group {
	margin-bottom: 20px;
}

.fluentform .ff-el-input--label label {
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--h50-hell);
}

.fluentform .ff-el-form-control {
	background: var(--h50-feld) !important;
	color: var(--h50-papier) !important;
	border: 1px solid var(--h50-linie) !important;
	border-radius: 0 !important;
	font-family: inherit;
	font-size: 1.0625rem;
	padding: 12px 14px;
}

.fluentform .ff-el-form-control:focus {
	border-color: var(--h50-gold) !important;
	outline: 2px solid var(--h50-gold);
	outline-offset: 1px;
	box-shadow: none !important;
}

.fluentform .ff-el-form-check-label,
.fluentform .ff-el-form-check label {
	color: var(--h50-papier);
}

.fluentform input[type="radio"],
.fluentform input[type="checkbox"] {
	accent-color: var(--h50-gold);
}

.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:hover {
	background: var(--h50-gold) !important;
	color: var(--h50-nacht) !important;
	border: 0 !important;
	border-radius: 0 !important;
	font-family: var(--h50-anton);
	font-weight: 400;
	font-size: 1.25rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 14px 36px;
}

.fluentform .ff-btn-submit:hover {
	background: var(--h50-papier) !important;
}

.fluentform .ff-btn-submit:focus-visible {
	outline: 2px solid var(--h50-papier);
	outline-offset: 3px;
}

.ff-message-success {
	background: transparent !important;
	border: 1px solid var(--h50-gold) !important;
	box-shadow: none !important;
	color: var(--h50-papier) !important;
	font-size: 1.25rem;
	padding: 20px 24px !important;
}

.fluentform .error,
.fluentform .text-danger {
	color: #F08C6A !important;
}

/* ---------- Galerie ---------- */

.galerie-kopf {
	max-width: 1100px;
	margin-inline: auto !important;
	padding: clamp(48px, 8vw, 96px) 24px 0;
	box-sizing: border-box;
}

.galerie-kopf > * { margin: 0 !important; }
.galerie-kopf > * + * { margin-top: 0.3em !important; }

.galerie-kopf .kicker {
	color: var(--h50-gold);
	font-family: var(--h50-anton);
	font-size: clamp(1.5rem, 3vw, 2rem);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.galerie-inhalt {
	max-width: 1100px;
	margin-inline: auto !important;
	padding: 40px 24px 0;
	box-sizing: border-box;
}

.post-password-form input[type="password"] {
	background: var(--h50-feld);
	color: var(--h50-papier);
	border: 1px solid var(--h50-linie);
	border-radius: 0;
	padding: 12px 14px;
	font-size: 1.0625rem;
}

.post-password-form input[type="submit"] {
	background: var(--h50-gold);
	color: var(--h50-nacht);
	border: 0;
	border-radius: 0;
	font-family: var(--h50-anton);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 1.125rem;
	padding: 12px 28px;
	cursor: pointer;
}

/* ---------- Anmeldeseite ---------- */

.anmeldung-kopf,
.anmeldung-inhalt {
	max-width: 720px;
	margin-inline: auto !important;
	padding: 0 24px;
	box-sizing: border-box;
}

.anmeldung-kopf { padding-top: clamp(48px, 8vw, 96px); }
.anmeldung-kopf > * { margin: 0 !important; }
.anmeldung-kopf > * + * { margin-top: 0.35em !important; }

.anmeldung-kopf .kicker {
	color: var(--h50-gold);
	font-family: var(--h50-anton);
	font-size: clamp(1.5rem, 3vw, 2rem);
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.anmeldung-kopf h1 { font-size: clamp(2.5rem, 7vw, 4rem); }

.anmeldung-inhalt { padding-top: 12px; }

/* ---------- Fußzeile ---------- */

.fuss-150 {
	max-width: 720px;
	margin-inline: auto;
	padding: 48px 24px;
	box-sizing: border-box;
	font-size: 0.9rem;
	color: var(--h50-grau);
}

.fuss-150 p { margin: 0; }

.fuss-150 a {
	color: var(--h50-hell);
	text-decoration: none;
}

.fuss-150 a:hover,
.fuss-150 a:focus-visible {
	color: var(--h50-gold);
	text-decoration: underline;
}
