/*
Theme Name: FASD-OKAY
Description: Theme der FASD-OKAY Selbsthilfegruppe Nord-Ost Niedersachsen. Ruhig, gut lesbar, ohne externe Dienste (Schriften lokal eingebunden).
Version: 1.3.8
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: fasd-okay
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ---------- Allgemein ---------- */
:where(a):focus-visible,
:where(button, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--orange);
	outline-offset: 3px;
}
.screen-reader-text:focus { clip: auto; }

/* ---------- Kopfzeile ---------- */
.fo-header {
	background: var(--wp--preset--color--weiss);
	border-bottom: 1px solid var(--wp--preset--color--rahmen);
}
.fo-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--wp--preset--color--text);
}
.fo-brand img { width: 56px; height: 56px; object-fit: contain; display: block; }
.fo-brand__name {
	display: block;
	font-family: var(--wp--preset--font-family--lexend);
	font-weight: 600;
	font-size: 19px;
	line-height: 1.25;
}
.fo-brand__sub {
	display: block;
	font-size: 14px;
	color: var(--wp--preset--color--grau);
	line-height: 1.25;
}
.fo-header .wp-block-navigation a { text-decoration: none; }
.fo-header .wp-block-navigation .fo-nav-button > a,
.fo-header .wp-block-navigation .fo-nav-button .wp-block-navigation-item__content {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--weiss);
	border-radius: 999px;
	padding: 10px 20px;
}
.fo-header .wp-block-navigation .fo-nav-button > a:hover { background: #9A4114; }

/* ---------- Abschnitte der Startseite ---------- */
.fo-hero {
	background: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--text);
	border-bottom: 1px solid var(--wp--preset--color--rahmen);
	padding-top: clamp(40px, 6vw, 72px);
	padding-bottom: clamp(48px, 7vw, 88px);
}
.fo-hero h1 { color: var(--wp--preset--color--petrol); }
.fo-hero .fo-kicker { color: var(--wp--preset--color--orange); }
.fo-hero .fo-lead { color: #33433F; }
.fo-hero-logo { margin: 0 auto; text-align: center; }
.fo-hero-logo img { width: 100%; max-width: 440px; height: auto; }
@media (max-width: 781px) { .fo-hero-logo img { max-width: 220px; } }
.fo-strip {
	background: var(--wp--preset--color--mint);
	border-radius: 16px;
	padding: 18px 24px;
	margin-top: 32px !important;
}
.fo-strip p { margin: 0; }
.fo-strip .fo-card-label { color: var(--wp--preset--color--orange); }
.fo-strip a { font-weight: 700; }
.fo-kicker {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--orange);
	margin-bottom: 0;
}
.fo-lead { font-size: var(--wp--preset--font-size--gross); }
.fo-kontakt .fo-lead { color: #E3ECE9; }

.fo-section { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(48px, 7vw, 80px); }
.fo-band {
	background: var(--wp--preset--color--mint);
	padding-top: clamp(56px, 8vw, 88px);
	padding-bottom: clamp(56px, 8vw, 88px);
}
.fo-intro { color: var(--wp--preset--color--grau); max-width: 720px; }

.fo-card {
	background: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--text);
	border: 1px solid var(--wp--preset--color--rahmen);
	border-radius: 18px;
	padding: 32px;
}
.fo-card h3, .fo-card h2 { color: var(--wp--preset--color--text); }
.fo-card-label {
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--grau);
	margin-bottom: 0;
}
.fo-card-label--akzent { color: var(--wp--preset--color--orange); }
.fo-card-big {
	font-family: var(--wp--preset--font-family--lexend);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 600;
	line-height: 1.25;
}
.fo-muted { color: var(--wp--preset--color--grau); }
.fo-phone {
	font-family: var(--wp--preset--font-family--lexend);
	font-size: 22px;
	font-weight: 600;
}
.fo-phone a { text-decoration: none; }
.fo-card hr, .fo-card .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--rahmen);
	margin: 20px 0;
	opacity: 1;
}
.fo-card .wp-block-separator { width: 100%; }
.fo-meeting { max-width: 720px; }

.fo-kontakt {
	background: var(--wp--preset--color--petrol);
	color: var(--wp--preset--color--weiss);
	padding-top: clamp(56px, 8vw, 88px);
	padding-bottom: clamp(56px, 8vw, 88px);
}
.fo-kontakt h2 { color: var(--wp--preset--color--weiss); }
.fo-kontakt p { color: #E3ECE9; }
.fo-kontakt a:not(.wp-element-button) { color: var(--wp--preset--color--weiss); font-weight: 700; }

/* Umrandeter Button */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 2px solid currentColor;
	color: var(--wp--preset--color--petrol);
	padding: 12px 26px;
}
.fo-kontakt .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--weiss); }

/* Spalten auf kleinen Bildschirmen untereinander, mit Abstand */
@media (max-width: 781px) {
	.fo-cards.wp-block-columns { gap: 20px; }
}

/* ---------- Unterseiten, Beiträge ---------- */
.fo-page { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.fo-page .wp-block-post-title { margin-bottom: 1.5rem; }
.fo-post-list .wp-block-post {
	background: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--rahmen);
	border-radius: 18px;
	padding: 28px 32px;
}
.fo-post-list .wp-block-post-title a { text-decoration: none; }
.fo-post-list .wp-block-post-excerpt__more-link { font-weight: 700; }

/* FAQ (Details-Block) */
.wp-block-details {
	background: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--rahmen);
	border-radius: 14px;
	padding: 18px 24px;
}
.wp-block-details summary {
	font-family: var(--wp--preset--font-family--lexend);
	font-weight: 600;
	font-size: 20px;
	cursor: pointer;
	color: var(--wp--preset--color--petrol);
}
.wp-block-details[open] summary { margin-bottom: 12px; }

/* ---------- Fußzeile ---------- */
.fo-footer {
	background: var(--wp--preset--color--weiss);
	border-top: 1px solid var(--wp--preset--color--rahmen);
	font-size: 15px;
	color: var(--wp--preset--color--grau);
}
.fo-footer p { margin: 0; }
.fo-footer a { color: var(--wp--preset--color--petrol); }

/* Keine Lücken zwischen Kopfzeile, Inhalt und Fußzeile bzw. zwischen den farbigen Abschnitten */
.wp-site-blocks > * + * { margin-block-start: 0; }
.fo-front .wp-block-post-content > * { margin-block-start: 0; margin-block-end: 0; }

/* Feinschliff */
.fo-band .fo-intro, .fo-section .fo-intro, .fo-meeting { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }
.fo-page .fo-intro { max-width: var(--wp--style--global--content-size, 760px); }
.fo-card .wp-block-separator { width: 100% !important; max-width: none !important; }
.fo-page .wp-block-post-content h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 2.2rem; }
.fo-page .wp-block-post-content h3 { font-size: 22px; margin-top: 1.8rem; }
@media (max-width: 600px) {
	.fo-header .wp-block-group.is-layout-flex { flex-wrap: nowrap; }
	.fo-brand img { width: 44px; height: 44px; }
	.fo-brand__name { font-size: 16px; }
	.fo-brand__sub { font-size: 13px; }
}

/* Küchen-Abschnitt */
.fo-kueche {
	background: #FBF1E9;
	padding-top: clamp(56px, 8vw, 96px);
	padding-bottom: clamp(56px, 8vw, 96px);
}
.fo-kueche .fo-kicker { color: var(--wp--preset--color--orange); }
.fo-bigquote {
	font-family: var(--wp--preset--font-family--lexend);
	font-size: clamp(24px, 3.2vw, 34px);
	font-weight: 600;
	line-height: 1.3;
	color: var(--wp--preset--color--petrol);
	margin: 0;
}
.fo-bigquote::before {
	content: "\201E";
	display: block;
	font-size: 2.4em;
	line-height: 1;
	color: var(--wp--preset--color--orange);
	margin-top: -.45em;
	margin-bottom: .05em;
}
.fo-kueche .wp-block-columns { gap: clamp(28px, 5vw, 64px); }

/* Persönliches Wort */
.fo-foto {
	aspect-ratio: 4 / 5;
	border: 2px dashed var(--wp--preset--color--rahmen);
	border-radius: 20px;
	background: var(--wp--preset--color--weiss);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	color: var(--wp--preset--color--grau);
	max-width: 380px;
}
.fo-foto p { margin: 0; }
.fo-unterschrift {
	font-family: var(--wp--preset--font-family--lexend);
	font-weight: 600;
	color: var(--wp--preset--color--petrol);
}

/* Zitat aus der Gruppe */
.wp-block-quote.fo-quote {
	border: 0;
	margin: 28px 0 0;
	padding: 28px 32px;
	background: var(--wp--preset--color--mint);
	border-radius: 18px;
}
.wp-block-quote.fo-quote p {
	font-size: 21px;
	font-style: italic;
	color: var(--wp--preset--color--petrol-dunkel);
}
.wp-block-quote.fo-quote cite {
	display: block;
	margin-top: 10px;
	font-size: 15px;
	font-style: normal;
	color: var(--wp--preset--color--grau);
}

/* Porträt im Abschnitt „Ein persönliches Wort“ */
.fo-portrait { margin: 0; }
.fo-portrait img {
	width: 100%;
	max-width: 380px;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 30%;
	border-radius: 20px;
	display: block;
}

/* ===================== Mehr Pepp ===================== */
:root {
	--fo-gelb: #F2A33A;
	--fo-koralle: #E8505B;
	--fo-magenta: #C2185B;
	--fo-lila: #7B1FA2;
	--fo-blau: #1E88E5;
	--fo-federn: linear-gradient(90deg, var(--fo-gelb) 0 20%, var(--fo-koralle) 20% 40%, var(--fo-magenta) 40% 60%, var(--fo-lila) 60% 80%, var(--fo-blau) 80% 100%);
}

/* Farbleiste in den Logofarben über Kopf- und Fußzeile */
.fo-header { position: relative; }
.fo-header::before,
.fo-footer::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 5px;
	background: var(--fo-federn);
}
.fo-footer { position: relative; }

/* Kleine Farbmarke unter den Abschnittsüberschriften */
.fo-section > h2::after,
.fo-section .wp-block-column > h2::after,
.fo-kueche h2::after {
	content: "";
	display: block;
	width: 72px;
	height: 5px;
	margin-top: 14px;
	border-radius: 3px;
	background: var(--fo-federn);
}
.fo-card h2::after { display: none !important; }

/* Weicher Farbkreis hinter dem Logo */
.fo-hero-logo { position: relative; isolation: isolate; }
.fo-hero-logo::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	top: 50%;
	width: min(92%, 420px);
	aspect-ratio: 1;
	transform: translate(-50%, -46%);
	border-radius: 50%;
	background: #FBF1E9;
}

/* Symbole in den drei FASD-Karten */
.fo-cards .fo-card::before {
	content: "";
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	margin-bottom: 18px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 28px;
}
.fo-cards .wp-block-column:nth-child(1) .fo-card::before {
	background-color: var(--fo-magenta);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E");
}
.fo-cards .wp-block-column:nth-child(2) .fo-card::before {
	background-color: var(--fo-lila);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 4l16 16'/%3E%3C/svg%3E");
}
.fo-cards .wp-block-column:nth-child(3) .fo-card::before {
	background-color: var(--fo-gelb);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E");
}

/* Lebendigere Karten und Buttons */
.fo-card { transition: transform .25s ease, box-shadow .25s ease; }
.fo-cards .fo-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 30px rgba(20, 51, 47, .10);
}
.wp-block-button__link { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20, 51, 47, .18); }

/* Textmarker-Hervorhebung */
mark.fo-mark {
	background: linear-gradient(transparent 58%, #F6C9A2 58%);
	color: inherit;
	padding: 0 .08em;
}

/* Sanftes Einblenden (vom Skript gesteuert) */
.fo-einblenden { opacity: 0; transform: translateY(18px); }
.fo-einblenden.fo-sichtbar { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
@media (prefers-reduced-motion: reduce) {
	.fo-card, .wp-block-button__link { transition: none; }
	.fo-cards .fo-card:hover, .wp-block-button__link:hover { transform: none; }
}

/* ===================== Kontaktformular ===================== */
.fo-formular {
	background: var(--wp--preset--color--weiss);
	color: var(--wp--preset--color--text);
	border-radius: 20px;
	padding: clamp(24px, 4vw, 36px);
}
.fo-formular h3 { color: var(--wp--preset--color--petrol); margin-top: 0; }
.fo-kontakt .fo-formular p { color: var(--wp--preset--color--text); }
.fo-kontakt .fo-formular a:not(.wp-element-button) { color: var(--wp--preset--color--petrol); }
.fo-formular label { display: block; font-weight: 700; margin-bottom: 4px; }
.fo-formular .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
	padding: 12px 14px;
	font: inherit;
	font-weight: 400;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--hell);
	border: 1px solid #C9D3CF;
	border-radius: 10px;
}
.fo-formular .wpcf7-form-control:focus { outline: 3px solid var(--wp--preset--color--orange); outline-offset: 1px; }
.fo-formular textarea { min-height: 140px; }
.fo-formular .wpcf7-acceptance label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.fo-formular .wpcf7-acceptance input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.fo-formular .wpcf7-submit {
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--weiss);
	border: 0;
	border-radius: 999px;
	padding: 14px 30px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.fo-formular .wpcf7-submit:hover { background: #9A4114; }
.fo-formular .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; }
.fo-formular .wpcf7-not-valid-tip { color: #A3261B; font-size: 15px; font-weight: 400; }
.fo-formular .wpcf7-response-output { border-radius: 10px; margin: 16px 0 0 !important; }

/* Symbole im Abschnitt „Ihr erstes Treffen“ */
.fo-cards.fo-cards--schlicht .wp-block-column:nth-child(1) .fo-card::before {
	background-color: var(--fo-koralle);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}
.fo-cards.fo-cards--schlicht .wp-block-column:nth-child(2) .fo-card::before {
	background-color: var(--fo-blau);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E");
}
.fo-cards.fo-cards--schlicht .wp-block-column:nth-child(3) .fo-card::before {
	background-color: var(--wp--preset--color--petrol);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

/* Unterseiten: Listen und Abschnitte etwas luftiger */
.fo-page .wp-block-post-content .wp-block-list li { margin-bottom: .5em; }
.fo-page .wp-block-post-content > h2:first-child { margin-top: 0; }

/* ---------- Fachbegriffe ---------- */
.fo-register {
	background: var(--wp--preset--color--mint);
	border-radius: 16px;
	padding: 20px 26px 22px;
}
.fo-register .fo-register-titel { font-size: 22px; margin-top: 0; }
.fo-register p { margin: 6px 0 0; line-height: 1.9; }
.fo-buchstabe {
	display: inline-block;
	min-width: 1.6em;
	font-family: var(--wp--preset--font-family--lexend);
	color: var(--wp--preset--color--orange);
}
.wp-block-details + .wp-block-details { margin-top: 12px; }
.wp-block-details { scroll-margin-top: 90px; }
.fo-beispiel {
	background: color-mix(in srgb, var(--wp--preset--color--pfirsich) 45%, #fff);
	border-left: 4px solid var(--wp--preset--color--orange);
	border-radius: 0 10px 10px 0;
	padding: 12px 16px;
}

/* Newsletter-Formulare (Plugin „Newsletter“); „body“ erhöht die Spezifität gegenüber dem Plugin-CSS */
body .tnp-subscription { max-width: 560px; margin: 24px 0; }
body .tnp-subscription label { font-weight: 600; }
body .tnp-subscription input[type="email"] {
	width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 17px;
	background: var(--wp--preset--color--weiss);
	border: 1px solid var(--wp--preset--color--grau); border-radius: 10px;
}
body .tnp-subscription input[type="email"]:focus { outline: 3px solid var(--wp--preset--color--pfirsich); border-color: var(--wp--preset--color--orange); }
body .tnp-subscription .tnp-privacy-field label { font-weight: 400; line-height: 1.5; }
body .tnp-subscription input.tnp-submit,
body .tnp-unsubscribe button.tnp-submit,
body .tnp-reactivate button.tnp-submit {
	background: var(--wp--preset--color--orange); color: var(--wp--preset--color--weiss);
	border: 0; border-radius: 999px; padding: 13px 26px; font-size: 17px; font-weight: 700; cursor: pointer;
}
body .tnp-subscription input.tnp-submit:hover,
body .tnp-unsubscribe button.tnp-submit:hover,
body .tnp-reactivate button.tnp-submit:hover { background: var(--wp--preset--color--petrol); }

/* Beitragsbilder */
.fo-beitragsbild { margin: 0 0 14px; overflow: hidden; }
.fo-beitragsbild img { display: block; width: 100%; height: auto; }
.fo-post-list .fo-beitragsbild { max-width: 640px; }
.fo-post-list .fo-beitragsbild a img { transition: transform .3s ease; }
.fo-post-list .fo-beitragsbild a:hover img { transform: scale(1.02); }
.single .fo-beitragsbild { margin-top: 18px; margin-bottom: 28px; }

/* Newsletter-Hinweis (Startseite, unter Beiträgen) */
.fo-nl-hinweis {
	background: var(--wp--preset--color--mint);
	border-left: 6px solid var(--wp--preset--color--orange);
	border-radius: 16px; padding: 22px 26px; gap: 14px 28px;
	margin-top: 44px !important;
}
.fo-nl-hinweis .fo-nl-text { flex: 1 1 320px; }
.fo-nl-hinweis .fo-nl-text p { margin: 0; }
.fo-nl-hinweis .fo-nl-titel {
	font-family: var(--wp--preset--font-family--lexend); font-weight: 700;
	font-size: 21px; color: var(--wp--preset--color--petrol); margin-bottom: 4px !important;
}
