/*
 * Copyright (c) 2026 Angelsportverein Zeven e.V.
 * Autor: Yannik Mühlthaler
 * Alle Rechte vorbehalten.
 */

/* Basis-Styling für einfache Seiten (templates/page.html) */

.asv-main {
	padding-block: 3rem;
}

@media (min-width: 640px) {
	.asv-main {
		padding-block: 4rem;
	}
}

.asv-main > .wp-block-post-title {
	color: #1f2937;
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	margin: 0 0 1rem;
}

.asv-main > .wp-block-post-title::after {
	content: "";
	display: block;
	width: 3rem;
	height: 0.1875rem;
	margin: 1rem auto 0;
	border-radius: 9999px;
	background: #166534;
}

@media (min-width: 640px) {
	.asv-main > .wp-block-post-title {
		font-size: 2.25rem;
		margin-bottom: 1.5rem;
	}

	.asv-main > .wp-block-post-title::after {
		margin-top: 1.5rem;
	}
}

.asv-main .wp-block-post-content {
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.6;
}

.asv-main .wp-block-post-content > p {
	margin-block: 0 1rem;
}

.asv-main .wp-block-post-content a {
	color: #166534;
	text-decoration: underline;
}

.asv-main .wp-block-post-content a:hover,
.asv-main .wp-block-post-content a:focus-visible {
	color: #14532d;
}

.asv-main .wp-block-post-content h2,
.asv-main .wp-block-post-content h3 {
	color: #1f2937;
	font-weight: 700;
	line-height: 1.3;
	margin-block: 2rem 0.75rem;
}

.asv-main .wp-block-post-content h2 {
	font-size: 1.5rem;
}

.asv-main .wp-block-post-content h3 {
	font-size: 1.25rem;
}

/*
 * Newsletter-Plugin (The Newsletter Plugin, Shortcode [newsletter]).
 * Formulare, Meldungen und Profilseite im Theme-Design.
 */

.tnp {
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.6;
}

.tnp p {
	margin-block: 0 1rem;
}

.tnp a {
	color: #166534;
	text-decoration: underline;
}

.tnp a:hover,
.tnp a:focus-visible {
	color: #14532d;
}

/* Formular (Anmeldung, Profil) – schlicht, wie das Footer-Formular */
.tnp-subscription,
.tnp-profile {
	max-width: 32rem;
	margin-inline: auto;
	padding: 0;
	background: transparent;
}

.tnp form {
	margin: 0;
}

.tnp-subscription form {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
}

/* E-Mail + Button in einem weißen Container – wie das Footer-Formular */
.tnp-subscription .tnp-form-row {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.5rem;
	padding: 0.5rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
}

@media (min-width: 640px) {
	.tnp-subscription .tnp-form-row {
		flex-direction: row;
		align-items: center;
		gap: 0.75rem;
	}
}

.tnp-subscription .tnp-field {
	margin: 0;
}

.tnp-subscription .tnp-field-email {
	min-width: 0;
}

@media (min-width: 640px) {
	.tnp-subscription .tnp-field-email {
		flex: 1 1 12rem;
	}

	.tnp-subscription .tnp-field-button {
		flex: 0 0 auto;
	}
}

@media (max-width: 639px) {
	.tnp-subscription .tnp-field-button,
	.tnp-subscription .tnp-submit {
		width: 100%;
	}
}

/* Label nur für Screenreader (Platzhalter übernimmt die Anzeige) */
.tnp-subscription .tnp-field-email label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.tnp .tnp-field label {
	color: #1f2937;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

.tnp input[type="text"],
.tnp input[type="email"],
.tnp select,
.tnp textarea {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 0;
	padding: 0.75rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	background: #fff;
	color: #1f2937;
	font-family: inherit;
	font-size: 0.875rem;
	line-height: 1.25;
}

/* Im weißen Formular-Container: Eingabefeld transparent, ohne eigenen Rand */
.tnp-subscription input[type="text"],
.tnp-subscription input[type="email"] {
	background: transparent;
	border: none;
}

.tnp input[type="text"]::placeholder,
.tnp input[type="email"]::placeholder {
	color: #9ca3af;
}

.tnp input[type="text"]:focus,
.tnp input[type="email"]:focus,
.tnp select:focus,
.tnp textarea:focus {
	outline: 2px solid #166534;
	outline-offset: 0;
	border-color: #166534;
}

/* Checkboxen (Listen, Datenschutz) – zentriert unter der Eingabezeile */
.tnp .tnp-field-checkbox,
.tnp .tnp-privacy-field,
.tnp .tnp-field-privacy {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 0.5rem;
}

.tnp .tnp-field-checkbox label,
.tnp .tnp-privacy-field label,
.tnp .tnp-field-privacy label {
	display: inline;
	margin: 0;
	color: #6b7280;
	font-size: 0.875rem;
	font-weight: 400;
}

.tnp .tnp-privacy-field a,
.tnp .tnp-field-privacy a {
	color: inherit;
	text-decoration: underline;
}

.tnp .tnp-privacy-field a:hover,
.tnp .tnp-privacy-field a:focus-visible,
.tnp .tnp-field-privacy a:hover,
.tnp .tnp-field-privacy a:focus-visible {
	color: #166534;
}

.tnp input[type="checkbox"] {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	margin-block-start: 0.25rem;
	accent-color: #166534;
}

.tnp input[type="checkbox"]:focus-visible {
	outline: 2px solid #166534;
	outline-offset: 2px;
}

/* Buttons */
.tnp input[type="submit"],
.tnp .tnp-submit,
.tnp .tnp-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0.75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 0.5rem;
	background: #166534;
	color: #fff;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms ease;
}

.tnp input[type="submit"]:hover,
.tnp input[type="submit"]:focus-visible,
.tnp .tnp-submit:hover,
.tnp .tnp-submit:focus-visible,
.tnp .tnp-button:hover,
.tnp .tnp-button:focus-visible {
	background: #14532d;
	color: #fff;
}

.tnp input[type="submit"]:focus-visible,
.tnp .tnp-submit:focus-visible,
.tnp .tnp-button:focus-visible {
	outline: 2px solid #166534;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.tnp input[type="submit"],
	.tnp .tnp-submit,
	.tnp .tnp-button {
		transition: none;
	}
}

/*
 * Newsletter-Seite: Vorteils-Sektion, Anmeldung, Vertrauenszeile.
 */

.asv-newsletter__heading {
	color: #1f2937;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	margin: 0 0 0.75rem;
}

@media (min-width: 640px) {
	.asv-newsletter__heading {
		font-size: 1.75rem;
	}
}

.asv-newsletter__intro {
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.6;
	text-align: center;
	max-width: 42rem;
	margin: 0 auto 2rem;
}

/* Vorteilskarten */
.asv-newsletter-benefits {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin: 0;
}

@media (min-width: 768px) {
	.asv-newsletter-benefits {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

.asv-newsletter-benefit {
	padding: 1.5rem;
	background: #f9fafb;
	border-radius: 0.75rem;
}

.asv-newsletter-benefit::before {
	content: "";
	display: flex;
	width: 2.75rem;
	height: 2.75rem;
	margin-block-end: 1rem;
	border-radius: 0.625rem;
	background-color: #ecfdf5;
}

.asv-newsletter-benefit__title {
	position: relative;
	color: #1f2937;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 0.5rem;
}

.asv-newsletter-benefit__title::before {
	content: "";
	position: absolute;
	top: -3rem;
	left: 0.6875rem;
	width: 1.375rem;
	height: 1.375rem;
	background-color: #166534;
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.asv-newsletter-benefit--news .asv-newsletter-benefit__title::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8'/%3E%3Cpath d='M15 18h-5'/%3E%3Cpath d='M10 6h8v4h-8V6Z'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2'/%3E%3Cpath d='M18 14h-8'/%3E%3Cpath d='M15 18h-5'/%3E%3Cpath d='M10 6h8v4h-8V6Z'/%3E%3C/svg%3E");
}

.asv-newsletter-benefit--calendar .asv-newsletter-benefit__title::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}

.asv-newsletter-benefit--fish .asv-newsletter-benefit__title::before {
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z'/%3E%3Cpath d='M18 12v.5'/%3E%3Cpath d='M16 17.93a9.77 9.77 0 0 1 0-11.86'/%3E%3Cpath d='M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33'/%3E%3C/svg%3E");
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12c.94-3.46 4.94-6 8.5-6 3.56 0 6.06 2.54 7 6-.94 3.47-3.44 6-7 6s-7.56-2.53-8.5-6Z'/%3E%3Cpath d='M18 12v.5'/%3E%3Cpath d='M16 17.93a9.77 9.77 0 0 1 0-11.86'/%3E%3Cpath d='M7 10.67C7 8 5.58 5.97 2.73 5.5c-1 1.5-1 5 .23 6.5-1.24 1.5-1.24 5-.23 6.5C5.58 18.03 7 16 7 13.33'/%3E%3C/svg%3E");
}

.asv-newsletter-benefit__text {
	color: #4b5563;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin: 0;
}

/* Anmelde-Sektion: graues Band über die volle Seitenbreite (alignfull) */
.asv-newsletter-signup {
	background: #f9fafb;
	width: 100%;
	max-width: none;
	padding-block: 3rem;
}

@media (min-width: 640px) {
	.asv-newsletter-signup {
		padding-block: 4rem;
	}
}

.asv-newsletter-signup__inner {
	max-width: 48rem;
	margin-inline: auto;
	padding-inline: 1rem;
}

@media (min-width: 640px) {
	.asv-newsletter-signup__inner {
		padding-inline: 1.5rem;
	}
}

/*
 * WordPress-Layout-Styles (body .is-layout-flow > *) nullen die Margins
 * direkter Gruppen-Kinder. Abstände deshalb mit höherer Spezifität setzen.
 */
.is-layout-flow > .asv-newsletter__heading {
	margin-block: 0 0.75rem;
}

.is-layout-flow > .asv-newsletter__intro {
	margin-block: 0 2rem;
}

.asv-newsletter-signup__inner > .asv-newsletter__heading {
	margin-block: 0 0.5rem;
}

.asv-newsletter-signup__inner > .asv-newsletter-signup__intro {
	margin-block: 0 1.5rem;
}

.asv-newsletter-signup__inner > .asv-newsletter-trust {
	margin-block: 1.75rem 0;
}

/* Statusmeldungen des Newsletter-Plugins (Bestätigung, Fehler) – zentriert */
.asv-newsletter-message {
	color: #1f2937;
	font-size: 1.0625rem;
	line-height: 1.6;
	text-align: center;
}

.asv-newsletter-message p {
	margin-block: 0 1rem;
}

.asv-newsletter-message p:last-child {
	margin-block-end: 0;
}

.asv-newsletter-message a {
	color: #166534;
	text-decoration: underline;
}

/* Vertrauenszeile unter dem Formular */
.asv-newsletter-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin: 1.75rem 0 0;
	color: #6b7280;
	font-size: 0.875rem;
	line-height: 1.5;
}

.asv-newsletter-trust__item {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
}

.asv-newsletter-trust__item::before {
	content: "";
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	background-color: #166534;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

