/*
Theme Name: Bandstahlschnitte
Template: twentytwentyfive
Author: G. Heise Laser-Bandstahlschnitte GmbH
Description: Child-Theme von Twenty Twenty-Five für die Website der G. Heise Laser-Bandstahlschnitte GmbH. Schwarz und Rot mit Weiß und Grau, lokal eingebundene Schriften Montserrat und Raleway, eigene Kopf- und Fußzeile, Seitenbanner und Startseiten-Bühne.
Version: 2026.49.00002
Requires at least: 6.7
Requires PHP: 7.2
Text Domain: bandstahlschnitte
*/

/*
 * File: style.css
 *
 * Purpose: the theme header of the child theme "Bandstahlschnitte", and the
 * few rules that theme.json cannot express. Every colour, font, size and
 * spacing value lives in theme.json; the rules below only use its preset
 * variables (--wp--preset--...) and its custom variables (--wp--custom--...).
 * Each rule says why theme.json cannot do it. functions.php loads this file
 * on the front end and registers it as an editor style, so the block editor
 * and the Site Editor show the same rules.
 *
 * Colour slugs: the palette uses the slugs of the parent theme (base,
 * contrast, accent-1 to accent-6), so that the section styles, patterns and
 * templates of Twenty Twenty-Five resolve to the brand colours:
 *   black    #111111 Schwarz    accent-1 #e64e4e Rot
 *   contrast #222222 Textfarbe  accent-3 #c73c3c Dunkelrot
 *   base     #ffffff Weiß       accent-2 #f4f4f4 Hellgrau
 *   accent-6 #e5e5e5 Grau       accent-4 #6b6b6b Mittelgrau
 * accent-5 repeats the grey for the parent's section style 1; the slugs
 * white and red repeat base and accent-1 for templates/front-page.html, and
 * black stays because the page content uses has-black-color.
 *
 * Copyright (c) 2026 G. Heise Laser-Bandstahlschnitte GmbH. Proprietary.
 *
 * This change log is history. Entries are never deleted, reworded or
 * reordered; a correction is a new entry appended at the end.
 *
 * Change Log:
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: created.
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: colours by the
 *     parent's slugs; current menu item and its parent in dark red with a
 *     red underline (5.07 : 1 on white); two-colour focus ring; the overlay
 *     menu up to 781 px, so the menu never wraps into a third header row;
 *     submenu toggles with a 24 x 24 px target; four footer columns without
 *     an empty track; corner radius from theme.json; loaded in the editor.
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: the home page banner
 *     lives in the content of the page "Home"; the home layout frames the
 *     page with header and footer only; the duplicate palette names
 *     "white" and "red" removed. History of the block templates and of
 *     theme.json: CHANGELOG.md beside the theme (not uploaded).
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: version 2026.48.00004
 *     with the footer heading "Lohnfertigung und Service"
 *     (patterns/hidden-footer.php); no rule of this file changed.
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: version 2026.48.00005
 *     with the 404 page "Dieser Inhalt ist umgezogen"
 *     (patterns/hidden-404.php, functions.php); no rule of this file
 *     changed.
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00006; the entry under the mouse pointer or the keyboard
 *     focus in a dropdown menu stands on dark red with white text, as in
 *     the former theme; with the footer entry "Kontakt"
 *     (patterns/hidden-footer.php, functions.php).
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00007; dividers (core/separator) get the margin preset
 *     spacing 60 above and below via theme.json; no rule of this file
 *     changed.
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00008; the logo in the header links to the home page
 *     again (parts/header.html); no rule of this file changed.
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00009; the footer entry for the page "Rillmatrizen" is
 *     labelled "Rillmatrizen" (patterns/hidden-footer.php); no rule of
 *     this file changed.
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00010; the telephone and the fax number in the footer column
 *     KONTAKT start at the same horizontal position (rules
 *     .bandstahlschnitte-contact-lines and
 *     .bandstahlschnitte-contact-label; patterns/hidden-footer.php,
 *     assets/js/kontakt-verschleierung.js).
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00011; the telephone number, the fax number and the email
 *     address on the page Kontakt start at the same horizontal position
 *     (new rule .bandstahlschnitte-contact-lines--page
 *     .bandstahlschnitte-contact-label with a wider label); the rules of
 *     the footer did not change.
 *   2026-11-28, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00012; without JavaScript the footer column KONTAKT shows a
 *     link to the page Kontakt in place of "[wird geladen]"; its three
 *     lines are span elements shown as blocks (new rule
 *     .bandstahlschnitte-footer-contact-line; patterns/hidden-footer.php),
 *     no longer separated by <br>.
 *   2026-11-29, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00013; the footer links to the pages Muster and
 *     Automotive, Kunststoff und hoher Stahl carry the page names
 *     (patterns/hidden-footer.php); no rule of this file changed.
 *   2026-11-29, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00014; the overlay menu up to 879 px instead of 781 px,
 *     because from 782 px up to 831 px the menu ran onto a second
 *     line, and the nested submenu of the menu opens to the right,
 *     because to the left it left the window (block "Header: three
 *     states, never a third row" and the rule after it); the
 *     entries of this change log name no person; the bottom bar of
 *     the footer links to the page "Seitenübersicht", and the
 *     footer link to page 188 carries its new name
 *     (patterns/hidden-footer.php, functions.php).
 *   2026-11-29, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00015; the alternating tagline: the "r" of "Schritt" fades
 *     in 0.8 s into "n" and back every 20 s, in the header and in the
 *     banner of the home page, without any other letter moving (section
 *     "The alternating tagline"; functions.php,
 *     assets/js/alternating-tagline.js). Confirmed design of 2026-11-29:
 *     "Visitors who have switched off animations: they see the fixed
 *     tagline." "yes"; "yes, calmly fades from "r" to "n" and back in an
 *     endless loop".
 *   2026-11-29, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.48.00016; the two map pictures of the home page that link to
 *     OpenStreetMap carry the button "Karte bei OpenStreetMap öffnen"
 *     on the picture and the warning "Externer Link: OpenStreetMap kann
 *     dort Cookies setzen." under it (section "The two map links to
 *     OpenStreetMap on the home page", class
 *     bandstahlschnitte-map-link-to-openstreetmap of the two image
 *     blocks of the page "Start"). No JavaScript.
 *   2026-12-03, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.49.00001; the footer column Stanzformenbau links to the pages
 *     "Ausbrechbretter" and "Zurichtebögen" (patterns/hidden-footer.php,
 *     functions.php). No rule of this file changed; the version is raised
 *     because a file in patterns/ changed.
 *   2026-12-03, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.49.00001; the footer column "Lohnfertigung und Service" links
 *     to the page "Verpackungsentwicklung" (patterns/hidden-footer.php,
 *     functions.php). No rule of this file changed.
 *   2026-12-05, G. Heise Laser-Bandstahlschnitte GmbH: version
 *     2026.49.00002; the footer is organised like the main menu
 *     (patterns/hidden-footer.php, functions.php); a rule keeps the
 *     headings of the footer columns, which now link to their pages, in
 *     the colour and without the underline of the other headings (section
 *     "Footer column headings that link").
 */

/*
 * Lining figures in running text.
 * Raleway draws old-style figures by default (the 3, 4, 5, 7 and 9 descend
 * below the baseline), which makes phone numbers, dimensions in millimetres
 * and dates look uneven. The served Raleway file carries the OpenType feature
 * "lnum", which switches to lining figures; Montserrat has lining figures by
 * default and is not affected. theme.json has no font-variant-numeric.
 */
body {
	font-variant-numeric: lining-nums;
}

/*
 * Long German compounds in headings.
 * Measured from the advance widths of Montserrat Bold: "Verpackungsentwicklung"
 * is 381 px wide at the smallest page title size (28 px) and
 * "Bandstahlschnitte/Stanzformen" 471 px, while a 375 px phone leaves 327 px
 * for text. Below 600 px the browser hyphenates headings with its German
 * dictionary (the html element carries lang="de"); overflow-wrap breaks a
 * word that has no hyphenation point as the last resort, so no heading makes
 * the page scroll sideways. On wider screens headings are not hyphenated.
 * theme.json has no hyphens and no overflow-wrap property.
 */
h1,
h2,
h3,
h4,
h5,
h6 {
	overflow-wrap: break-word;
}

@media (max-width: 599px) {
	h1,
	h2,
	h3,
	h4,
	h5,
	h6 {
		hyphens: auto;
	}
}

/*
 * Header: three states, never a third row.
 * Measured on 2026-11-28 in Chromium 158 with the theme's own font files,
 * at every window width from 320 to 1600 px, with the classic 15 px
 * scrollbar of a desktop browser and without a scrollbar (phones,
 * tablets, macOS), by measure_page_layout_at_widths.py of the go-live
 * item hauptmenue-bei-schmalen-desktop-breiten:
 *   - on a row of its own the menu (five uppercase entries, three submenu
 *     icons, four gaps of 16 px) takes one line from a window width of
 *     832 px with the scrollbar and 816 px without; below that,
 *     "UNTERNEHMEN" went onto a second menu line, the third row of the
 *     header;
 *   - beside logo, title and tagline the menu fits from 1283 px with the
 *     scrollbar and from 1268 px without; measured again on 2026-11-29,
 *     after the first menu entry had become "START" (was "HOME"),
 *     by preview_main_menu_and_footer_of_the_theme_update.py of the
 *     combined theme update, which found the other widths of this
 *     comment unchanged.
 * So the header has three states:
 *   - below 880 px the menu is the overlay button, beside logo and title.
 *     Core switches to the overlay below 600 px only; the rule below
 *     extends core's own overlay state to 879 px. 880 px leaves 48 px to
 *     spare with the scrollbar, room for the small differences in the
 *     width of text between browsers and systems;
 *   - from 880 px the row may wrap: the menu moves onto a second row,
 *     right-aligned, where it fits whole;
 *   - where everything fits it stays one row.
 * The navigation block has no setting for the width of its overlay
 * breakpoint, and the layout settings cannot change flex-wrap per screen
 * width. The two selectors are core's own (navigation/style.css of
 * WordPress 7.1.5) with the header row class in front; if a later core
 * renames them, the rule stops matching and the menu falls back to core's
 * 600 px behaviour, which wraps but stays usable. A new menu label, font
 * or gap changes the widths above; the measurement is then taken again.
 */
@media (min-width: 600px) and (max-width: 879px) {
	.bandstahlschnitte-header-row
		.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.bandstahlschnitte-header-row
		.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (min-width: 880px) {
	.wp-block-group.bandstahlschnitte-header-row {
		flex-wrap: wrap;
	}

	.bandstahlschnitte-header-row > .wp-block-navigation {
		margin-left: auto;
	}
}

/*
 * The nested submenu of the menu ("Ausbrechformen" inside
 * "Stanzformenbau") opens to the right.
 * For a right-justified menu core opens every submenu towards the left
 * from 782 px: the first level is right-aligned to its entry, a nested
 * level starts at the left edge of it (right: 100%). That suits entries
 * at the right edge of the window. "Stanzformenbau" has the entries
 * "Lohnfertigung und Service" and "Unternehmen" to its right, so its
 * submenu already reaches far to the left, and the nested submenu reached
 * up to 105 px beyond the left edge of the window (measured from 832 to
 * 941 px with the scrollbar and from 816 to 925 px without):
 * "Ausbrechformen Oberteile" and "Ausbrechformen Unterteile" were cut.
 * Opened to the right, the nested submenu starts at the right edge of the
 * first submenu, which is the right edge of the entry "Stanzformenbau",
 * and ends about 200 px further right, over the two entries after it,
 * inside the window at every width from 880 to 1600 px (measured). In the
 * open overlay menu core sets every submenu static; the rule names the
 * menu shown in the header row (:not(.is-menu-open)), so it never
 * reaches the overlay. The selector repeats core's (navigation/style.css
 * of WordPress 7.1.5) with the header row class and the menu container
 * in front, so it is the more specific one.
 */
@media (min-width: 880px) {
	.bandstahlschnitte-header-row .wp-block-navigation.items-justified-right
		.wp-block-navigation__responsive-container:not(.is-menu-open)
		.has-child .wp-block-navigation__submenu-container
		.wp-block-navigation__submenu-container {
		left: 100%;
		right: auto;
	}
}

/*
 * The logo keeps its 56 px. An image with max-width: 100% inside a flex row
 * may otherwise be shrunk together with the title on a phone. The layout
 * settings of a block offer no flex-shrink.
 */
.bandstahlschnitte-header-row .wp-block-site-logo {
	flex-shrink: 0;
}

/*
 * The menu item of the current page, and on a subpage also its parent item,
 * so that the position stays visible while the submenu is closed. The text
 * is dark red, 5.07 : 1 on white (the header row, the dropdown and the
 * overlay are white); the brand red would give 3.77 : 1, below the 4.5 : 1
 * that WCAG 2.2 SC 1.4.3 asks for 14 px text. A red underline (3.77 : 1 on
 * white, above the 3 : 1 of SC 1.4.11 for a graphic) marks the item without
 * relying on the colour of the text alone; its thickness is the 1 px the
 * parent theme sets for every link. Core marks the item with the class
 * "current-menu-item" and every submenu above it with
 * "current-menu-ancestor"; theme.json offers no selector for either.
 */
.wp-block-navigation .wp-block-navigation-item.current-menu-item
	> .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item.current-menu-ancestor
	> .wp-block-navigation-item__content {
	color: var(--wp--preset--color--accent-3);
	text-decoration-line: underline;
	text-decoration-color: var(--wp--preset--color--accent-1);
	text-underline-offset: 0.35em;
}

/*
 * The entry under the mouse pointer or the keyboard focus in a dropdown
 * menu stands on red with white text, as it did in the former theme
 * BusinesStar. His question of 2026-11-28: "before, when I used the drop
 * down menus, the current entry under the cursor was highlighted in red
 * background, why is that not working anymore?" Twenty Twenty-Five marks a
 * hovered dropdown entry with nothing but the cursor, and theme.json has no
 * hover state for navigation entries. The red is the dark red accent-3:
 * white text on it is 5.07 : 1, above the 4.5 : 1 of WCAG 2.2 SC 1.4.3 for
 * the 14 px menu text; on the brand red accent-1 white would be 3.77 : 1.
 * The rule stands after the rule of the current page's entry, which has the
 * same specificity, so the white text wins there too (dark red text would
 * vanish on the dark red background), and the underline turns white.
 */
.wp-block-navigation .wp-block-navigation__submenu-container
	.wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation__submenu-container
	.wp-block-navigation-item__content:focus-visible {
	background-color: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--base);
	text-decoration-color: var(--wp--preset--color--base);
}

/*
 * Target size of the submenu toggles (WCAG 2.2 SC 2.5.8: 24 x 24 px).
 * Core draws the toggle button .6em square (8.4 px at the 14 px menu size)
 * with a .25em gap after the parent link. An invisible pseudo-element
 * enlarges the area that takes the click to 24 x 24 px without moving
 * anything: it starts at the end of the parent link (left: -0.25em covers
 * only the gap), so the link keeps its whole width, and it reaches 12.1 px
 * past the icon into the 16 px gap before the next item. In the overlay menu
 * core hides the toggles, so the rule has no effect there.
 */
.bandstahlschnitte-header-row .wp-block-navigation-submenu__toggle {
	position: relative;
}

.bandstahlschnitte-header-row .wp-block-navigation-submenu__toggle::before {
	content: "";
	position: absolute;
	top: 50%;
	left: -0.25em;
	width: 24px;
	height: 24px;
	transform: translateY(-50%);
}

/*
 * Footer link lists without bullets. The list block has no setting for the
 * list marker; its left padding is set to 0 in the block itself.
 */
.bandstahlschnitte-footer-link-list {
	list-style: none;
}
/*
 * Footer column headings that link. The headings of the three navigation
 * columns link to the page of their menu section (patterns/hidden-footer.php),
 * as the menu entries do. The footer group sets the colour of every link in
 * it (the element style "link" of the group block, a rule of one class and one
 * element), which would turn the heading text from white to the grey of the
 * entries and underline it. This rule, with two classes and one element,
 * wins over it: the heading keeps the colour it inherits from the heading
 * block and has no underline at rest, so the footer looks as it did before
 * the headings became links; the underline appears under the pointer and the
 * keyboard focus, which is what marks the heading as a link. theme.json
 * has no selector for a link inside one block type of one group.
 */
.bandstahlschnitte-footer-columns .wp-block-heading a {
	color: inherit;
	text-decoration: none;
}

.bandstahlschnitte-footer-columns .wp-block-heading a:hover,
.bandstahlschnitte-footer-columns .wp-block-heading a:focus-visible {
	color: inherit;
	text-decoration: underline;
}

/*
 * Footer columns: four on the desktop, filling the 1200 px grid.
 * The grid layout of the block writes repeat(auto-fill, ...) with the
 * minimum column width of 12rem. From a container width of 1120 px auto-fill
 * makes five tracks; at the full 1200 px the four columns are 208 px wide
 * and end 248 px short of the right edge of the grid. auto-fit collapses the
 * empty track (four columns of 270 px at 1200 px); with four or fewer tracks
 * it gives exactly the steps auto-fill gives (one, two, three, four columns
 * at the same widths). The layout settings offer auto-fill only, and a fixed
 * column count of 4 would also apply on phones. The class selector (two
 * classes) wins over the layout class core generates (one class). The 12rem
 * repeats the minimumColumnWidth of the grid block in
 * patterns/hidden-footer.php: a change of one is made in the other.
 */
.wp-block-group.bandstahlschnitte-footer-columns {
	grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
}

/*
 * Footer column KONTAKT: the telephone and the fax number start at the same
 * horizontal position, as in a monospaced text. In a proportional font "Tel:"
 * and "Fax:" differ in width, so the numbers behind them started at different
 * positions. The labels are span elements written by
 * assets/js/kontakt-verschleierung.js; each gets the same fixed width, wider
 * than the wider label, and cannot wrap. The width is in em, so it follows the
 * font size, and 2.8em plus the space and the longest number stays far below
 * the 12rem minimum width of a footer column. The digits get equal widths
 * (tabular-nums) as well; lining-nums repeats the rule of body above, because
 * font-variant-numeric set on an element replaces the inherited value as a
 * whole. theme.json has no font-variant-numeric and no inline-block rule for
 * a span.
 */
.bandstahlschnitte-contact-lines {
	font-variant-numeric: lining-nums tabular-nums;
}

.bandstahlschnitte-contact-label {
	display: inline-block;
	width: 2.8em;
	white-space: nowrap;
}

/*
 * Footer column KONTAKT, the three lines telephone, fax and email: each line
 * is a span element of its own (ids bs-tel, bs-fax and bs-mail in
 * patterns/hidden-footer.php), shown as a block, so that the lines stand
 * below each other without a <br> between them. Without JavaScript the first
 * span holds a link to the page Kontakt and the two others are empty: an
 * empty block has no height, so nothing follows the link, where a <br> after
 * an empty span leaves a blank line. assets/js/kontakt-verschleierung.js
 * replaces the content of each span, and the three filled blocks show the
 * same lines at the same positions as the former spans separated by <br>.
 * The class is the footer's own; the page Kontakt keeps its <br> lines.
 * theme.json has no rule for a span.
 */
.bandstahlschnitte-footer-contact-line {
	display: block;
}

/*
 * Contact lines on the page Kontakt (paragraph with the classes
 * bandstahlschnitte-contact-lines and bandstahlschnitte-contact-lines--page):
 * the telephone number, the fax number and the email address start at the
 * same horizontal position, as in the footer. The labels there are "Tel:" and
 * "Fax:"; the page has "Tel.:", "Fax:" and "Email:", and "Email:" is the
 * widest. Measured from the advance widths of the served Raleway file (the
 * default instance of the variable font): "Email:" is 2.63em wide, "Tel.:"
 * 1.73em and "Fax:" 1.77em, so the footer's 2.8em would leave "Email:" with
 * almost no gap to the address at the regular weight. The page rule gives the
 * labels 3.4em instead, and does not change the footer rule above. The rule
 * is more specific than the footer rule, so it wins on the page; theme.json
 * has no rule for a span.
 */
.bandstahlschnitte-contact-lines--page .bandstahlschnitte-contact-label {
	width: 3.4em;
}

/*
 * Height of the page banner: about 360 px on the desktop, less on the phone
 * (200 px at least, room for a two-line title). The cover block stores one
 * fixed minimum height with one unit; a height that follows the screen width
 * between two limits needs clamp().
 */
.wp-block-cover.bandstahlschnitte-page-banner {
	min-height: clamp(12.5rem, 28vw, 22.5rem);
}

/*
 * Focus ring for keyboard users: two colours, black outside and white
 * inside (WCAG technique C40). The two colours have 18.88 : 1 against each
 * other, and on every background at least one of them has 4.35 : 1 or more
 * (computed with the WCAG formula over all 256 greys and a grid of 140608
 * sRGB colours, every fifth channel value; the lowest value lies at a
 * background of relative luminance 0.19, where both have 4.35 : 1). So the
 * ring keeps the 3 : 1 of WCAG 2.2 SC 1.4.11 on white, on the black footer,
 * on red and dark red, and on any pixel of a photo behind the hero gradient.
 * The outline draws the black ring 2 px outside the element; the box-shadow
 * fills the 2 px between element and outline with white. Where the parent
 * theme sets a larger outline offset (4 px on menu links), the background
 * shows between the white and the black ring; the menu sits on white there,
 * where the black ring alone has 18.88 : 1. In forced-colours mode the
 * browser drops the box-shadow and keeps the outline in a system colour.
 * theme.json styles the focus state of buttons only (elements.button);
 * links, form fields, the submenu toggles of the navigation and its overlay
 * buttons have no theme.json element for an outline.
 */
:where(.wp-site-blocks) :focus-visible {
	outline: 2px solid var(--wp--preset--color--black);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--wp--preset--color--base);
}

/*
 * Contact Form 7 on the page "Kontakt".
 * The form is markup of the plugin, not blocks; theme.json reaches no element
 * of it. The selectors name the plugin's own classes on the form controls.
 * No rule here sets position, display, size or overflow on a paragraph of the
 * form: the honeypot field is hidden by the inline style of its paragraph
 * (position: absolute; left: -10000px; width and height 1px; overflow hidden),
 * and its text input carries none of the classes below.
 */
form.wpcf7-form label {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/*
 * The fields: full width of the reading column, a mid grey border (5.33 : 1
 * on white, so the field outline is visible as WCAG asks for controls), body
 * font at 16 to 17 px, which also keeps phones from zooming into the field.
 */
form.wpcf7-form input.wpcf7-text,
form.wpcf7-form input.wpcf7-email,
form.wpcf7-form input.wpcf7-tel,
form.wpcf7-form textarea.wpcf7-textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin-top: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--accent-4);
	border-radius: var(--wp--custom--corner-radius);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--raleway);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	line-height: 1.5;
}

form.wpcf7-form textarea.wpcf7-textarea {
	resize: vertical;
}

form.wpcf7-form .wpcf7-form-control:focus-visible {
	border-color: var(--wp--preset--color--black);
}

/* A field the plugin marks as invalid after sending. */
form.wpcf7-form .wpcf7-not-valid {
	border-color: var(--wp--preset--color--accent-3);
}

/*
 * The submit button looks like every other button of the site (theme.json,
 * styles.elements.button), which reaches only block buttons, not this input.
 */
form.wpcf7-form input.wpcf7-submit {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 0;
	border-radius: var(--wp--custom--corner-radius);
	background-color: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
}

form.wpcf7-form input.wpcf7-submit:hover {
	background-color: var(--wp--preset--color--black);
}

/*
 * The alternating tagline (the order of 2026-11-29).
 * The tagline reads "Präzision bei jedem Schritt. Seit 1969" for 20 s; then
 * the "r" of "Schritt" calmly fades into an "n" and it reads "Präzision bei
 * jedem Schnitt. Seit 1969" for 20 s; then back, endlessly. Minimalist:
 * nothing flashy, no blinking, nothing that calls for attention. Only that
 * one letter changes; no other letter of the tagline moves, in either state
 * or during the change, and the line breaks at the same place in both
 * states. Confirmed design of 2026-11-29: "Visitors who have switched off
 * animations: they see the fixed tagline." "yes"; "yes, calmly fades from
 * "r" to "n" and back in an endless loop". Both tagline blocks change: the
 * one in the header of every page and the large one in the banner of the
 * home page, together.
 *
 * Markup (functions.php, bandstahlschnitte_render_alternating_tagline):
 *   <p class="wp-block-site-tagline bandstahlschnitte-alternating-tagline">
 *   Präzision bei jedem Sch<span class="bandstahlschnitte-tagline-letter-place"
 *   data-bandstahlschnitte-alternate-letter="n"><span
 *   class="bandstahlschnitte-tagline-letter-of-the-setting">r</span></span>itt.
 *   Seit 1969</p>
 * The text of the page stays the tagline setting: it is what is read aloud,
 * copied, found and indexed. The "n" is generated content (::after) with an
 * empty alternative text after the "/": it is not in the text of the page,
 * not in the accessibility tree and not copied.
 *
 * The width of the place. In Raleway at weight 500, the font and weight of
 * both taglines, the "r" is 363 and the "n" 590 thousandths of an em wide
 * (advance widths read in Chromium 158 with canvas measureText at 1000 px
 * on 2026-11-29; no kerning between h, r, n and i). The difference, 3.18 px
 * at the 14 px of the header and 4.99 px at the 22 px of the banner, would
 * move "itt. Seit 1969" if the letter place followed the letter. So the
 * place keeps one width in both states: the mean of the two letters,
 * 476.5 thousandths of an em. The "r" stands in its middle, with
 * (590 - 363) / 4 = 56.75 thousandths of an em of padding on each side,
 * and the "n" is centred on it, reaching the same 56.75 thousandths
 * beyond the place on each side, into the side bearings of "h" and "i"
 * (Raleway keeps about 60 thousandths of an em of space on the right of
 * "h" and on the left of "i", so the ink of "n" never touches them). The
 * mean is the width at which each state differs least from the font's own
 * spacing: every side of the changing letter is 0.79 px (header) or
 * 1.25 px (banner) wider than the font's spacing with "r" and the same
 * amount narrower with "n". With the place as wide as the "n", the "r"
 * stood with a visible gap ("Schr itt"); with the place as wide as the "r",
 * the "n" touched its neighbours.
 * The value is the one number of this section that depends on the font: a
 * change of the font or the weight of the tagline needs it measured again.
 *
 * The change: a CSS transition of 0.8 s of the registered custom property
 * --bandstahlschnitte-tagline-alternate-share from 0 ("r") to 1 ("n") and
 * back, started by assets/js/alternating-tagline.js every 20 s by toggling
 * the class bandstahlschnitte-tagline-shows-the-alternate-letter. The "r"
 * has the opacity 1 - share, the "n" the opacity share. Between two changes
 * no transition and no animation runs, so the browser does no work for the
 * tagline (the reason in numbers is in the header of the script).
 * The two letters blend normally. Additive blending (mix-blend-mode:
 * plus-lighter in an isolated group) was measured on 2026-11-29 in Chromium
 * 158 and rejected: the isolated group draws the letter into a layer of its
 * own, where the text is rasterised differently, so the "r" changed its
 * look the moment the change began (at 2.4 % of the change a mean deviation
 * of 1.5 and 2.5 of 255 over the place, up to 41, where normal blending
 * stayed at 0.05 and 0.17), and it changed back at the end. With normal
 * blending the only deviation from a pure cross-fade of the two rest images
 * is where the two letters overlap, in the middle of the change.
 *
 * The easing cubic-bezier(0.37, 0, 0.63, 1) is a sine curve that starts
 * and ends with a slope of zero: no abrupt onset, and an abrupt change of
 * luminance is what captures attention (Steven L. Franconeri, Andrew
 * Hollingworth and Daniel J. Simons, "Do new objects capture attention?",
 * Psychological Science 16, 2005).
 *
 * The property must be registered (@property: Chrome and Edge 85, Firefox
 * 128, Safari 16.4): an unregistered custom property does not interpolate.
 * Only on screens, only when the visitor has not asked for reduced motion,
 * only when scripting is enabled (without the script the letter never
 * changes, so its place keeps the font's own spacing), and only in browsers
 * that know the empty alternative text of generated content (Chrome and
 * Edge 77, Firefox 128, Safari 17.4): everywhere else the tagline is the
 * plain setting, "Präzision bei jedem Schritt. Seit 1969", without a change
 * and without the place, and a printed page shows it the same way.
 * A browser that does not know the media feature "scripting" treats the
 * whole condition as false and shows the plain setting as well (measured in
 * Chromium 158 on 2026-11-29: with scripting disabled the place has no
 * padding and no generated "n"). Should scripting be enabled but the script
 * fail to load, the place keeps its width and the "r" its 0.79 px or
 * 1.25 px per side; nothing moves.
 * line-height: normal puts the baseline of the "n" on the baseline of the
 * "r": Raleway has a line gap of 0, so a line of normal height is exactly
 * the content area of the inline box whose top edge the "n" starts at.
 * pointer-events: none lets a mouse selection reach the real text.
 * theme.json has no transition, no generated content and no media query.
 */
@property --bandstahlschnitte-tagline-alternate-share {
	syntax: "<number>";
	inherits: true;
	initial-value: 0;
}

@media screen and (prefers-reduced-motion: no-preference) and (scripting: enabled) {
	@supports (content: "x" / "") {
		.bandstahlschnitte-alternating-tagline {
			transition: --bandstahlschnitte-tagline-alternate-share 0.8s
				cubic-bezier(0.37, 0, 0.63, 1);
		}

		.bandstahlschnitte-alternating-tagline.bandstahlschnitte-tagline-shows-the-alternate-letter {
			--bandstahlschnitte-tagline-alternate-share: 1;
		}

		.bandstahlschnitte-tagline-letter-place {
			--bandstahlschnitte-tagline-letter-place-padding: 0.05675em;
			position: relative;
			padding-inline: var(--bandstahlschnitte-tagline-letter-place-padding);
		}

		.bandstahlschnitte-tagline-letter-of-the-setting {
			opacity: calc(1 - var(--bandstahlschnitte-tagline-alternate-share));
		}

		.bandstahlschnitte-tagline-letter-place::after {
			content: attr(data-bandstahlschnitte-alternate-letter) / "";
			position: absolute;
			top: 0;
			left: calc(-1 * var(--bandstahlschnitte-tagline-letter-place-padding));
			line-height: normal;
			white-space: nowrap;
			pointer-events: none;
			opacity: var(--bandstahlschnitte-tagline-alternate-share);
		}
	}
}

/*
 * The two map links to OpenStreetMap on the home page.
 * Under the heading "Wir sind quasi um die Ecke" of the page "Start" two
 * pictures of OpenStreetMap maps show where the company is. The order of
 * 2026-11-29: a button on each picture makes clear that a click opens
 * OpenStreetMap, and a clearly visible warning that belongs to each of the
 * two links says, before the click, that OpenStreetMap may set cookies
 * there; the reason for the warning is the legal risk of warning letters
 * ("Abmahnungen"). Both work without JavaScript: they are text of the
 * page, not of a script.
 *
 * Markup (the core image block, as the block editor writes it, with the
 * additional CSS class bandstahlschnitte-map-link-to-openstreetmap):
 *   <figure class="wp-block-image size-large
 *     bandstahlschnitte-map-link-to-openstreetmap"><img ... alt="(the map
 *     described)"/><figcaption class="wp-element-caption"><a
 *     href="(the OpenStreetMap address)"><strong>Karte bei OpenStreetMap
 *     öffnen</strong> (the warning)</a></figcaption></figure>
 * The picture itself is not linked; the caption is one link, written with
 * the editor's link and bold formats, whose text is the button text and
 * the warning. So the text the visitor sees is the text of the link, and
 * that is what a screen reader reads as the name of the link and what
 * speech control matches (WCAG 2.5.3, label in name); no text of the page
 * is drawn by CSS. A visitor without this style sheet still gets the link
 * with the button text and the warning, under the picture.
 *
 * Front end, where the rules below with
 * :not(.block-editor-block-list__block) apply:
 *   - the bold text becomes a button on the picture, 8 px (spacing preset
 *     20) from its top left corner. Its containing block is the figure,
 *     whose height includes the caption, so only the top of the picture
 *     has a known place: the bottom of the picture depends on the height
 *     of the caption, which changes with the width. The button has the
 *     colours and the font of every button of the site (theme.json,
 *     styles.elements.button): dark red with white text in Montserrat
 *     600, black under the mouse pointer and under the keyboard focus; a
 *     white border of 2 px keeps it apart from the red and orange roads of
 *     the map. Unlike the other buttons it is not in capitals: Chromium
 *     puts the capitals of text-transform into the accessible name of the
 *     link ("KARTE BEI OPENSTREETMAP ÖFFNEN"), and in capitals the button
 *     took three lines on a phone of 320 px and more than a third of the
 *     picture's height (measured 2026-11-29 in Chromium 158). In its own
 *     spelling it takes at most two lines at every width from 320 to
 *     1920 px. A drawn arrow out of a box after the text says "leaves this
 *     site", as the link symbol of many sites does;
 *   - the link is stretched over the whole figure by an empty ::after of
 *     the link (the "stretched link" of Bootstrap 4.3 and later): the
 *     figure is position: relative, the link and the caption are not
 *     positioned, so the ::after covers picture and caption. A click on
 *     the map, the button or the warning opens the same address, as a
 *     click on the map did before. The keyboard reaches the one link
 *     with one Tab; its focus ring (the two-colour ring of this file)
 *     goes around the whole figure, on the ::after;
 *   - the caption is the warning: light grey with a red line on the left,
 *     as the cards of the site, dark text in Raleway 600 (14.47 : 1 on
 *     the light grey) and a drawn warning sign in dark red (4.61 : 1 on
 *     the light grey, above the 3 : 1 that WCAG 2.2 SC 1.4.11 asks of a
 *     graphic). The white button text has 5.07 : 1 on dark red and
 *     18.88 : 1 on black (contrast ratios of WCAG 2.2 computed from the
 *     colours of theme.json). The paddings are small (8 px and 12 px), so
 *     that the warning stays on at most two lines on a phone of 320 px,
 *     where the picture is 272 px wide.
 * In the block editor the figure carries the class
 * block-editor-block-list__block, the button stays in the caption and
 * the link is not stretched, so the caption can be edited there with the
 * mouse; the editor shows the button colours and the warning box.
 *
 * The two symbols are SVG paths in data addresses, used as masks over the
 * background colour: no file and no request of their own, no icon font,
 * and they take the colour of the rule they stand in. They are drawn
 * shapes without text, so screen readers skip them; the words carry the
 * meaning. In the forced colours mode of Windows the browser replaces
 * background colours, which would make a mask invisible; there the
 * symbols take the system colour of the text beside them (CanvasText for
 * the warning sign, LinkText for the arrow inside the link).
 *
 * theme.json cannot do this: it has no selector for a block with an
 * additional class, no ::before or ::after, no position and no mask.
 */
.wp-block-image.bandstahlschnitte-map-link-to-openstreetmap {
	position: relative;
}

.bandstahlschnitte-map-link-to-openstreetmap .wp-element-caption {
	display: flex;
	gap: var(--wp--preset--spacing--20);
	align-items: flex-start;
	margin-top: var(--wp--preset--spacing--20);
	margin-bottom: 0;
	padding: var(--wp--preset--spacing--20) calc(1.5 * var(--wp--preset--spacing--20));
	border-left: 4px solid var(--wp--preset--color--accent-1);
	background-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.5;
	text-align: left;
}

/* The warning sign: a triangle with an exclamation mark cut out. */
.bandstahlschnitte-map-link-to-openstreetmap .wp-element-caption::before {
	content: "";
	flex: none;
	width: 1.25em;
	height: 1.25em;
	margin-top: 0.125em;
	background-color: var(--wp--preset--color--accent-3);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5 23.5 21.5H.5ZM11 8.5v7h2v-7Zm0 9v2h2v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 1.5 23.5 21.5H.5ZM11 8.5v7h2v-7Zm0 9v2h2v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bandstahlschnitte-map-link-to-openstreetmap .wp-element-caption a {
	color: inherit;
	text-decoration: none;
}

/* The button: the look of theme.json, styles.elements.button. */
.bandstahlschnitte-map-link-to-openstreetmap .wp-element-caption strong {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--20) calc(1.5 * var(--wp--preset--spacing--20));
	border: 2px solid var(--wp--preset--color--base);
	border-radius: var(--wp--custom--corner-radius);
	background-color: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	line-height: 1.2;
}

/* The arrow out of a box: "this link leaves the site". */
.bandstahlschnitte-map-link-to-openstreetmap .wp-element-caption strong::after {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-8.3 8.3-1.4-1.4L17.6 5H14ZM5 5h6v2H7v10h10v-4h2v6H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 3h7v7h-2V6.4l-8.3 8.3-1.4-1.4L17.6 5H14ZM5 5h6v2H7v10h10v-4h2v6H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bandstahlschnitte-map-link-to-openstreetmap .wp-element-caption a:hover strong,
.bandstahlschnitte-map-link-to-openstreetmap .wp-element-caption a:focus-visible strong {
	background-color: var(--wp--preset--color--black);
}

/* Front end only: the button on the picture, the link over the figure. */
.bandstahlschnitte-map-link-to-openstreetmap:not(.block-editor-block-list__block) .wp-element-caption strong {
	position: absolute;
	top: var(--wp--preset--spacing--20);
	left: var(--wp--preset--spacing--20);
	max-width: calc(100% - 2 * var(--wp--preset--spacing--20));
}

.bandstahlschnitte-map-link-to-openstreetmap:not(.block-editor-block-list__block) .wp-element-caption a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.bandstahlschnitte-map-link-to-openstreetmap:not(.block-editor-block-list__block) .wp-element-caption a:focus-visible {
	outline: none;
	box-shadow: none;
}

.bandstahlschnitte-map-link-to-openstreetmap:not(.block-editor-block-list__block) .wp-element-caption a:focus-visible::after {
	outline: 2px solid var(--wp--preset--color--black);
	outline-offset: 2px;
	box-shadow: 0 0 0 2px var(--wp--preset--color--base);
}

@media (forced-colors: active) {
	.bandstahlschnitte-map-link-to-openstreetmap .wp-element-caption::before {
		forced-color-adjust: none;
		background-color: CanvasText;
	}

	.bandstahlschnitte-map-link-to-openstreetmap .wp-element-caption strong::after {
		forced-color-adjust: none;
		background-color: LinkText;
	}
}

/* EOF */

