/*
Theme Name: MAM
Description: Block theme for mam-live.de, modelled on the old Wix site: dark, Poppins ExtraLight, centered section titles, outline buttons. Concert blocks and the slider come from the mam-core plugin.
Version: 0.9.13
Requires at least: 7.0
Requires PHP: 8.5
Text Domain: mam
*/

/* Everything else lives in theme.json. Only what theme.json cannot express goes here. */

.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > main { flex: 1; }
.wp-site-blocks > * + * { margin-block-start: 0; }

/* Header: logo left, flat menu and icons right; on phones (landscape too) and small tablets logo and icons centred, burger right.
   WordPress only switches to the burger below 600px, so it is forced up to 1023px here. */
.mam-header__right { gap: 1.5rem; }
.mam-header .wp-block-navigation__submenu-container { background: var(--wp--preset--color--base); border: 0; padding: .5rem 0; }
@media (max-width: 1023px) {
	.mam-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.mam-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.mam-header > .wp-block-group { position: relative; justify-content: center; flex-direction: column; gap: .5rem; }
	.mam-header .wp-block-site-logo img { width: 110px !important; }
	.mam-header__right { position: static; }
	.mam-header__right .wp-block-navigation { position: absolute; right: 0; top: .5rem; }
	.mam-header .wp-block-navigation__responsive-container-open svg { width: 34px; height: 34px; }
	.mam-header__social.has-small-icon-size { font-size: 20px; }
}

/* Header stays at the top while scrolling and gets compact below the first screen
   (assets/js/header.js). Fixed, not sticky: the space it takes at the top is reserved
   once (--mam-header-h), so shrinking it never moves the page (no layout shift).
   Without JS it is simply sticky. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; }
html.mam-header-fixed .wp-site-blocks { padding-top: var(--mam-header-h, 0px); }
html.mam-header-fixed .wp-site-blocks > header.wp-block-template-part { position: fixed; left: 0; right: 0; top: var(--wp-admin--admin-bar--height, 0px); }
html { scroll-padding-top: calc(var(--mam-header-compact-h, 70px) + 1rem); }
.mam-header { transition: padding .3s ease, box-shadow .3s ease; }
.mam-header .wp-block-site-logo img { transition: width .3s ease; }
.mam-header__social { transition: opacity .2s ease, max-height .3s ease, margin .3s ease, visibility 0s; max-height: 3rem; }
html.mam-header-compact .mam-header { padding-top: .5rem !important; padding-bottom: .5rem !important; box-shadow: 0 2px 12px rgb(0 0 0 / .5); }
html.mam-header-compact .mam-header .wp-block-site-logo img { width: 100px !important; }
@media (max-width: 1023px) {
	html.mam-header-compact .mam-header .wp-block-site-logo img { width: 72px !important; }
	html.mam-header-compact .mam-header__social { opacity: 0; max-height: 0; overflow: hidden; margin: 0; pointer-events: none; visibility: hidden; transition: opacity .2s ease, max-height .3s ease, margin .3s ease, visibility 0s .3s; }
	/* No transform here: it would make the navigation the containing block of the fixed full-screen menu. */
	html.mam-header-compact .mam-header__right .wp-block-navigation { top: calc(50% - 17px); }
	html.mam-header-compact .mam-header > .wp-block-group { gap: 0; }
}
html.mam-header-measuring .mam-header,
html.mam-header-measuring .mam-header * { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
	.mam-header, .mam-header .wp-block-site-logo img, .mam-header__social { transition: none; }
}

/* Bandsintown link of a concert: a small icon; the label shows as a tooltip on hover/focus. */
.mam-bit { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; color: var(--wp--preset--color--muted); transition: color .15s; }
.mam-bit:hover, .mam-bit:focus-visible { color: var(--wp--preset--color--contrast); }
.mam-bit::after {
	content: attr(data-tip);
	position: absolute;
	bottom: calc(100% + 4px);
	right: 0;
	padding: .25rem .5rem;
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-size: .75rem;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s;
}
.mam-bit:hover::after, .mam-bit:focus-visible::after { opacity: 1; }
@media (hover: none) { .mam-bit::after { display: none; } } /* touch: no hover, and it must not widen the page */

/* Home: WhatsApp channel "MAM Backstage" (graphic with QR code | text and button). */
.mam-backstage__bild img { display: block; width: 100%; max-width: 360px; margin-inline: auto; }
/* The claim is a normal H3, like the band members' names; only its spacing is set here. */
.mam-backstage__claim { margin: 0 0 .75rem; hyphens: manual; }
@media (max-width: 781px) { .mam-backstage__claim { text-align: center; } .mam-backstage .wp-block-buttons { justify-content: center; } }


/* Long German words in headings may break instead of widening the page. */
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
/* Running text: a word longer than the line (large Android font on a small phone) breaks instead of widening the page. */
p, li, figcaption, td, dd { overflow-wrap: break-word; }
/* An H2 that looks like an H3 (heading order for screen readers without changing the look). */
h2.mam-h3 { font-size: var(--wp--preset--font-size--x-large); }
.mam-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Home H1 in two lines: name, then the tagline smaller and lighter; never hyphenated. */
.mam-willkommen { hyphens: manual; line-height: 1.15; }
.mam-willkommen__sub { display: block; margin-top: .3em; font-size: .58em; font-weight: 300; letter-spacing: .02em; color: var(--wp--preset--color--muted); }
/* Legal texts (privacy, imprint). */
.mam-rechtstext p, .mam-rechtstext li, .mam-rechtstext td { overflow-wrap: anywhere; } /* long URLs */
/* Tables in legal texts (privacy page): readable on dark, scroll sideways on phones. */
.mam-tabelle { overflow-x: auto; }
.mam-tabelle table { font-size: var(--wp--preset--font-size--small); border-collapse: collapse; min-width: 34rem; }
.mam-tabelle th, .mam-tabelle td { border: 1px solid #2a2a30; padding: .5rem .65rem; text-align: left; vertical-align: top; }
.mam-tabelle thead { border-bottom: 0; }
.mam-tabelle th { background: var(--wp--preset--color--surface); font-weight: 600; }

/* Text pages (default page template: Impressum, Datenschutz, Marketing, Setlist, Videos,
   Tour, Ticketorder): one typographic system. The home page has its own section styles.
   - title smaller than the home page's section titles, and on the content's left edge
   - headings with air above and a little below, even paragraph spacing
   - body text Light (300) instead of ExtraLight for longer reading
   - pure text pages (.mam-rechtstext) in a ~70-character column, the title with them */
body.page-template-default .wp-block-post-title { font-size: clamp(2rem, 4vw, 2.5rem); max-width: 940px; margin-bottom: 2.25rem !important; }
body.page-template-default .wp-block-post-content :where(p, li) { font-weight: 300; }
body.page-template-default .wp-block-post-content :where(h2) { font-size: 1.75rem; margin-top: 3rem !important; margin-bottom: .9rem !important; }
body.page-template-default .wp-block-post-content :where(h3, h2.mam-h3) { font-size: 1.3rem; margin-top: 2.25rem !important; margin-bottom: .5rem !important; }
body.page-template-default .wp-block-post-content :where(h2, h3):first-child { margin-top: 0 !important; }
body.page-template-default .wp-block-post-content :where(p + p) { margin-top: 1.1rem; }
body:has(.mam-rechtstext) .wp-block-post-title,
body:has(.mam-rechtstext) .wp-block-post-content > .mam-rechtstext { max-width: 44rem; }
/* Marketing: each download row set apart. */
.mam-download { margin: 0 !important; padding-block: 2rem; border-top: 1px solid #2a2a30; }
.mam-download:last-of-type { border-bottom: 1px solid #2a2a30; }
.mam-poster .wp-element-button { white-space: nowrap; }
/* Small phone with a large font: "Herunterladen" may hyphenate instead of widening the page. */
@media (max-width: 400px) { .mam-poster .wp-element-button { white-space: normal; hyphens: auto; padding-inline: .8em; max-width: 100%; } }

/* Buttons: outline by default (theme.json), "Weiß" filled. */
.wp-block-button.is-style-weiss .wp-block-button__link { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.wp-block-button.is-style-weiss .wp-block-button__link:hover { background: transparent; color: var(--wp--preset--color--contrast); }

/* Section titles on the home page are centred, with Wix-like air between sections. */
.mam-section { padding-block: var(--wp--preset--spacing--60) 0; }
/* Home page: more air between sections (C 2026-11-23: ~47 px felt cramped, above all on desktop).
   Own value, because WordPress' default spacing scale wins over the theme's (spacing--60 is 2.25rem,
   not the theme's clamp). Booking and Kontakt keep theirs; they already have plenty. */
body.home .mam-section:not(:has(#booking, #kontakt)) { padding-top: clamp(3.25rem, 9vw, 6.5rem); }
.mam-section > h2 { text-align: center; margin-bottom: var(--wp--preset--spacing--50); }
.mam-section > .wp-block-buttons { justify-content: center; margin-top: var(--wp--preset--spacing--50); }

/* Band, crew and Wegbegleiter cards: square photo with name and role on the photo, over a dark
   fade, at every width (C 2026-11-23; before only on phones). One grid cell for photo and text:
   a name that wraps grows upwards instead of overlapping the role. Type follows the card width
   (container query; at most the 1.3rem the page h3 rule always gave the names, smaller on narrow
   crew cards), never below 1rem/.875rem, so a large system font still enlarges it.
   `.mam-cards .mam-card` and the !important margin beat that page h3 rule (further up). */
.mam-cards { gap: 3.5rem 3.75rem; }
.mam-cards--2 { grid-template-columns: repeat(2, 1fr) !important; }
.mam-cards--3 { grid-template-columns: repeat(3, 1fr) !important; gap: 3.5rem 5rem; }
@media (max-width: 781px) { .mam-cards--3 { grid-template-columns: repeat(2, 1fr) !important; gap: 2.5rem 1.5rem; } }
@media (max-width: 600px) { .mam-cards--2, .mam-cards--3 { grid-template-columns: 1fr !important; gap: 2.5rem; } }
.mam-card { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; container-type: inline-size; }
.mam-card > * { grid-column: 1; }
.mam-card .wp-block-image { grid-row: 1 / -1; margin: 0; position: relative; }
.mam-card .wp-block-image img { aspect-ratio: 1; object-fit: cover; width: 100%; display: block; }
.mam-card .wp-block-image a { display: block; } /* linked photo (band): no line-height gap under the image */
.mam-card .wp-block-image::after { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / .45) 45%, rgb(0 0 0 / .75)); pointer-events: none; }
.mam-cards .mam-card h3, .mam-cards .mam-card p { position: relative; margin: 0 !important; padding-inline: 1rem; text-align: center; text-shadow: 0 1px 6px rgb(0 0 0 / .6); pointer-events: none; }
.mam-cards .mam-card h3 { grid-row: 2; font-size: clamp(1rem, 7cqi, 1.3rem); }
.mam-card h3 a { text-decoration: none; }
.mam-cards .mam-card p { grid-row: 3; margin-top: .3rem !important; padding-bottom: 1.25rem; font-size: clamp(.875rem, 5cqi, var(--wp--preset--font-size--large)); }

/* Concert lists: rows with alternating background. */
.wp-block-query .wp-block-post-template > li:nth-child(odd) { background: #222224; }
.wp-block-query .wp-block-post-template > li { margin: 0; }
.wp-block-query .wp-block-post-template { gap: 0; }
.wp-block-mam-konzert-details + * { margin-top: var(--wp--preset--spacing--40); }

/* Videos: big teaser, then the mam/videos block (its own CSS in mam-core). */

/* Booking section and page heroes: full-bleed photo, centred white text. */
.mam-hero .wp-block-cover__inner-container { max-width: 780px; }
.mam-hero p { text-shadow: 0 1px 4px rgb(0 0 0 / .5); }

/* Kontakt panel. */
.mam-kontakt { text-align: center; }
.mam-kontakt .wp-block-social-links { justify-content: center; }
@media (max-width: 781px) {
	/* As on the old site: photo first, then the contact lines with air around them. */
	.mam-kontakt .wp-block-columns { gap: 0; }
	.mam-kontakt .wp-block-column:last-child { order: -1; }
	.mam-kontakt .wp-block-column:first-child { padding: 2.5rem 1rem 2.75rem; }
	.mam-kontakt p { line-height: 2.4; color: var(--wp--preset--color--muted); }
	.mam-kontakt .wp-block-social-links.has-small-icon-size { font-size: 20px; margin-top: 1.5rem; }
}

/* Concert page: header like the member pages (stage photo, text left), then description and
   the way back (templates/single-konzert.html). */
.mam-konzert-kopf .wp-block-cover__inner-container { max-width: 940px; }
.mam-konzert-kopf .mam-konzert-kopf__label { margin: 0; font-size: var(--wp--preset--font-size--small); text-transform: uppercase; letter-spacing: .12em; }
.mam-konzert-kopf .wp-block-post-title { margin: .25rem 0 1.25rem; overflow-wrap: break-word; hyphens: auto; text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.mam-konzert-kopf .wp-block-mam-konzert-details p { margin-bottom: .5em; }
.mam-konzert-kopf .mam-konzert__adresse { color: var(--wp--preset--color--muted); }
.mam-konzert-kopf .mam-konzert__aktionen { margin-top: 1.5rem; }
.mam-konzert-text > * + * { margin-top: var(--wp--preset--spacing--50); }
.mam-konzert-text .wp-block-post-content:empty { display: none; }

/* Member pages: photo as background, text left. */
.mam-mitglied .wp-block-cover__inner-container { max-width: 940px; }

/* Marketing rows: title and file type left, text and button right. */
.mam-download :is(h2, h3) { margin: 0; font-size: var(--wp--preset--font-size--large); }
.mam-download :is(h2, h3) + p { margin-top: .25rem; font-weight: 400; }

/* Setlist: three columns, two on phones. */
/* Columns at least 7em wide: one column on 320px phones and with a large system font. */
.mam-setlist { columns: 3 7em; column-gap: 2rem; }
.mam-setlist li { break-inside: avoid; overflow-wrap: break-word; }
@media (max-width: 599px) { .mam-setlist { columns: 2 7em; } }

/* Footer. */
/* Footer set off from the content: surface grey, and air at the end of every page's content. */
.wp-site-blocks > main { padding-bottom: var(--wp--preset--spacing--60); }
.mam-footer__titel { margin: 0; }
.mam-footer p { margin: 0; line-height: 1.9; font-weight: 300; }
.mam-footer .wp-block-columns { margin-bottom: 0; }
/* Newsletter signup in the footer, as on the old site: field and full-width button. */
.mam-footer .fluentform .ff-el-group { margin-bottom: .75rem; }
.mam-footer .fluentform .ff-el-form-control { background: transparent; color: inherit; border-color: #ffffff; }
.mam-footer .fluentform .ff-el-form-control::placeholder { color: #b5b5b5; }
.mam-footer .fluentform .ff-btn-submit { width: 100%; }
.mam-footer .mam-nl-hinweis p { font-size: .8rem; line-height: 1.5; color: var(--wp--preset--color--muted); }
.mam-footer .ff-message-success { border: 0; padding: 0; background: transparent; color: inherit; box-shadow: none; }
@media (max-width: 781px) {
	.mam-footer { text-align: center; }
	.mam-footer .wp-block-group { justify-content: center; }
}

.mam-editor-placeholder {
	padding: 1rem;
	border: 1px dashed var(--wp--preset--color--muted);
	color: var(--wp--preset--color--muted);
	font-size: .9em;
}

/* Placeholders for content that is still being built. */
.mam-todo { border-left: 3px solid var(--wp--preset--color--accent); padding-left: 1rem; }

/* Fluent Forms: square white fields like the old site; submit button white. */
.fluentform .ff-el-form-control { border-radius: 0; border: 1px solid #e3e3e3; min-height: 42px; font-family: inherit; }
/* 16 px in fields: iOS Safari zooms into any field below that on tap (QA K20). */
.fluentform .ff-el-group .ff-el-form-control, .fluentform .ff-el-group .ff-el-form-control::placeholder { font-size: 16px; }
/* Checkboxes and radios big enough for a finger (QA K21), white on the dark site. */
.fluentform input[type=checkbox], .fluentform input[type=radio] { width: 22px; height: 22px; margin: 0 .6em 0 0; vertical-align: -5px; accent-color: #ffffff; cursor: pointer; flex: 0 0 auto; }
.fluentform .ff-el-form-check-label { display: inline-flex; align-items: flex-start; gap: 0; line-height: 1.5; cursor: pointer; }
.fluentform .ff-el-form-check-label input { margin-top: .1em; }

.fluentform .ff-el-input--label label { font-weight: 200; font-size: var(--wp--preset--font-size--medium); }
.fluentform .ff-btn-submit { border-radius: 0 !important; font-family: inherit; font-weight: 400; }

/* Ticket form: one row per concert on sale with − [n] +, running total (mam-core inc/forms.php).
   Phones: info and quantity control side by side (44 px touch targets) to save height. */
.mam-tickets__list { list-style: none; margin: .25rem 0 0; padding: 0; border-top: 1px solid #2a2a30; }
.mam-tickets__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid #2a2a30; }
.mam-tickets__row.is-chosen .mam-tickets__name { color: #fff; }
.mam-tickets__info { display: flex; flex-direction: column; min-width: 0; }
.mam-tickets__date { font-size: .85rem; letter-spacing: .03em; text-transform: uppercase; color: var(--wp--preset--color--muted); }
.mam-tickets__name { font-weight: 600; overflow-wrap: anywhere; }
.mam-tickets__place, .mam-tickets__price { font-size: .9rem; font-weight: 300; }
.mam-tickets__qty { display: flex; align-items: stretch; flex: 0 0 auto; }
.mam-tickets__step { width: 48px; min-height: 48px; border: 1px solid #e3e3e3; background: transparent; color: inherit; font: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0; }
.mam-tickets__step:hover, .mam-tickets__step:focus-visible { background: #fff; color: #0c0c0d; }
.fluentform .mam-tickets__input { width: 3.5rem; min-height: 48px; text-align: center; border-left: 0; border-right: 0; padding: 0; font-size: 1.1rem; font-weight: 600; color: #0c0c0d; -moz-appearance: textfield; appearance: textfield; }
.mam-tickets__input::-webkit-outer-spin-button, .mam-tickets__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mam-tickets__soldout { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; border: 1px solid currentColor; padding: .35rem .6rem; color: var(--wp--preset--color--muted); }
.mam-tickets__row.is-soldout .mam-tickets__info { opacity: .55; }
.mam-tickets__total { margin: .9rem 0 0; text-align: right; font-size: 1.1rem; }
.mam-tickets .error { margin-top: .5rem; }
@media (max-width: 599px) {
	.mam-tickets__row { gap: .75rem; }
	.mam-tickets__step { width: 44px; min-height: 44px; }
	.fluentform .mam-tickets__input { width: 2.75rem; min-height: 44px; }
}

/* Fluent Forms address field: Straße on its own row, then PLZ | Ort. */
.mam-adresse > .ff-el-input--content { display: grid; grid-template-columns: 1fr 2fr; column-gap: 1rem; }
.mam-adresse > .ff-el-input--content > .ff-t-container { display: contents; }
.mam-adresse .ff-t-cell { display: block; width: auto; max-width: none; padding: 0; }
.mam-adresse .ff-t-cell .ff-el-group { width: 100%; }
.mam-adresse .ff-t-container:first-child .ff-t-cell:first-child { grid-column: 1 / -1; }

/* Mobile menu overlay, after the Wix one: dark panel over the dimmed page, centred items,
   Band folds out under a chevron, the "Mehr" pages listed directly, current page greyed. */
.wp-block-navigation__responsive-container.is-menu-open { background: rgba(40, 40, 40, .85) !important; padding: 0 !important; }
.is-menu-open .wp-block-navigation__responsive-close { flex-shrink: 0; max-width: 22rem; width: 74%; min-height: calc(100% - 1.5rem); margin: .75rem auto; border: 1px solid #2c2c2e; background: var(--wp--preset--color--base); }
.is-menu-open .wp-block-navigation__responsive-dialog { padding: 1.75rem 1.5rem 2rem; position: relative; }
.is-menu-open .wp-block-navigation__responsive-container-close { top: 1.6rem; right: 1.25rem; }
.is-menu-open .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }
.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0 !important; align-items: center !important; }
.is-menu-open .wp-block-navigation__container { position: static !important; align-items: stretch !important; gap: 0 !important; width: 100%; }
.is-menu-open .wp-block-navigation-item { align-items: center !important; width: 100%; position: relative; }
.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; font-weight: 200; padding: .4rem 0 !important; text-align: center; }
.is-menu-open .wp-block-navigation-item__content:focus { outline: none; }
.is-menu-open .wp-block-navigation-item__content:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: #8f8a85; }

/* Band: submenu closed until the chevron is tapped (assets/js/menu.js toggles .mam-offen). */
.is-menu-open .has-child .wp-block-navigation-submenu__toggle { display: block !important; position: absolute; right: .25rem; top: .85rem; width: 1.5rem; height: 1.5rem; padding: 0; transition: transform .2s; }
.is-menu-open .has-child .wp-block-navigation-submenu__toggle svg { display: block !important; width: 16px; height: 16px; margin: 0 auto; stroke-width: 1.5px; transform: none !important; }
.is-menu-open .has-child.mam-offen > .wp-block-navigation-submenu__toggle { transform: rotate(180deg); }
.is-menu-open .has-child > .wp-block-navigation__submenu-container { display: none !important; padding: 0 0 .5rem !important; gap: 0 !important; }
.is-menu-open .has-child.mam-offen > .wp-block-navigation__submenu-container { display: flex !important; }
.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1rem; padding: .3rem 0 !important; }

/* "Mehr" (the last top-level entry) is a desktop dropdown only; on mobile its pages are listed directly. */
.is-menu-open .wp-block-navigation__container > .has-child:last-child,
.is-menu-open .wp-block-navigation__container > .has-child:last-child > .wp-block-navigation__submenu-container { display: contents !important; }
.is-menu-open .wp-block-navigation__container > .has-child:last-child > .wp-block-navigation-item__content,
.is-menu-open .wp-block-navigation__container > .has-child:last-child > .wp-block-navigation-submenu__toggle { display: none !important; }
.is-menu-open .wp-block-navigation__container > .has-child:last-child .wp-block-navigation-item__content { font-size: 1.15rem; padding: .4rem 0 !important; }

/* Very narrow screens or a large Android system font: nothing may stick out sideways. At normal
   text sizes from 320px up these rules change nothing (checked element by element), except the
   reCAPTCHA, which Google builds 304px wide and which is scaled down where it does not fit. */
.fluentform .ff-el-input--label label, .fluentform .ff_t_c { overflow-wrap: anywhere; }
.fluentform .ff-btn-submit { white-space: normal; }
.fluentform div:has(> .g-recaptcha) { container-type: inline-size; }
@container (max-width: 303px) { .fluentform .g-recaptcha { transform: scale(.85); transform-origin: 0 0; } }
@container (max-width: 258px) { .fluentform .g-recaptcha { transform: scale(.7); } }
@container (max-width: 212px) { .fluentform .g-recaptcha { transform: scale(.6); } }
/* Cookie banner (Complianz; its own CSS is in setup/complianz.php): buttons and links wrap. */
.cmplz-cookiebanner > * { min-width: 0; }
.cmplz-cookiebanner .cmplz-documents, .cmplz-cookiebanner .cmplz-documents ul { flex-wrap: wrap !important; }
@media (max-width: 768px) {
	.cmplz-cookiebanner .cmplz-buttons { flex-wrap: wrap !important; }
	.cmplz-cookiebanner .cmplz-buttons .cmplz-btn { flex: 1 1 7em !important; }
}

/* Sending (reCAPTCHA check and mails take a few seconds): Fluent Forms puts .ff-working on the
   button meanwhile. Its own progress bar is white and vanishes on our white buttons, so the label
   gives way to a spinner and "Wird gesendet …". */
.fluentform .ff-btn-submit.ff-working { position: relative; color: transparent !important; opacity: 1; cursor: progress; }
.fluentform .ff-btn-submit.ff-working::after {
	content: "Wird gesendet …";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-left: 1.5em; /* spinner 1em + gap .5em; label is 8.12em wide in Poppins */
	height: auto;
	background: none;
	color: #0c0c0d;
	animation: none;
}
.fluentform .ff-btn-submit.ff-working::before {
	content: "";
	position: absolute;
	top: 50%;
	left: calc(50% - 4.81em); /* half of spinner + gap + label */
	width: 1em;
	height: 1em;
	margin-top: -.5em;
	border: 2px solid currentColor;
	border-color: #0c0c0d #0c0c0d #0c0c0d transparent;
	border-radius: 50%;
	animation: mam-spin .8s linear infinite;
}
@keyframes mam-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fluentform .ff-btn-submit.ff-working::before { animation: none; } }

/* Heading at the bottom of a header photo (Our Story: keeps the faces free) needs a shadow over light shirts. */
.wp-block-cover.is-position-bottom-center h1 { text-shadow: 0 2px 12px rgb(0 0 0 / .6); }
