/*
Theme Name: Herrmann Child
Template: twentytwentyfive
Description: herrmann-j.de – Erscheinungsbild der bisherigen TYPO3-Seite (charmant_templates) auf Twenty Twenty-Five. SPRINZ+SPRINZ, connected with lasagna.
Version: 1.0.1
Author: lasagna
Author URI: https://lasagna-ai.de
Text Domain: herrmann-child
*/

:root { --her-rot: #c60000; --her-grau: #ddd; --her-kopf: 100px; }
html { scroll-padding-top: var(--her-kopf); }
body { hyphens: auto; -webkit-hyphens: auto; }
strong, b { font-weight: 700; }
.her-haupt { margin-top: 0 !important; padding-top: var(--her-kopf); }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--her-rot); outline-offset: 2px; }

/* ---------- Kopf ---------- */
.her-kopf { position: fixed; top: 0; left: 0; right: 0; z-index: 990; background: #fff; border-bottom: 4px solid #dedede; height: var(--her-kopf); }
.admin-bar .her-kopf { top: 32px; }
.her-kopf-innen { max-width: 1140px; margin: 0 auto; height: 100%; padding: 3px 24px 14px; box-sizing: border-box; }
.her-logo img { width: 250px !important; height: auto; max-height: 92px; object-fit: contain; object-position: left top; }
.her-menue { font-family: var(--wp--preset--font-family--gothic); font-size: 21px; font-weight: 400; letter-spacing: 1px; }
.her-menue .wp-block-navigation-item__content { color: var(--her-rot) !important; padding: 0 16px; text-decoration: none; }
.her-menue .wp-block-navigation-item__content:hover { color: #aaa !important; }
.her-menue .wp-block-navigation__submenu-icon { display: none; }
.her-menue .wp-block-navigation__submenu-container { border: 0 !important; background: rgba(255, 255, 255, .92) !important; padding: 10px 0 !important; min-width: 15em !important; font-size: 19px; }
.her-menue .wp-block-navigation__submenu-container .wp-block-navigation-item__content { color: #444 !important; padding: 2px 16px; transition: transform .3s; }
.her-menue .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { transform: translateX(3px); color: var(--her-rot) !important; }
.her-menue .wp-block-navigation__responsive-container-open svg, .her-menue .wp-block-navigation__responsive-container-close svg { width: 34px; height: 34px; fill: var(--her-rot); }
.her-menue .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.her-menue .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { background: transparent !important; padding: 0 0 0 18px !important; }

/* ---------- Grundraster (srt_special = grauer Inhaltsbereich) ---------- */
.her-zeile.srt_special { padding: 0 8% 40px; background: var(--her-grau); }
.her-zeile.srt_special > * { max-width: 990px; margin-left: auto !important; margin-right: auto !important; }
.her-zeile.srt_special > .wp-block-columns.leistungen_inhalt { max-width: 1040px; }
.wp-block-columns.her-zeile { gap: 4%; margin-top: 30px; margin-bottom: 0; }
.her-weiss { background: #fff; }
.her-rot { background: var(--her-rot); color: #fff; }
.her-el.srt-content { padding: 4% 6%; }
.her-el.srt-content + .her-el.srt-content, .her-zeile.srt-content + .her-zeile.srt-content { margin-top: 0; }
.srt-content h2 { margin: 0 0 30px; }
.srt-content h3 { margin-top: 2.2em; }
.srt-content p, .her-zeile p { font-size: 15px; line-height: 1.8; }
.her-zeile li { font-size: 14px; line-height: 2.3; }
.her-zeile .wp-block-column > .her-zeile.srt-content:first-child { padding-top: 22px; }
.leistungen_inhalt .wp-block-column:last-child h3 { color: #333; font-size: 20px; margin: 18px 0 8px; }
.leistungen_inhalt .wp-block-column:last-child > .her-zeile.srt-content { padding: 6px 18px 16px; }
.leistungen_inhalt .wp-block-column:last-child h5 { margin: 1.6em 0 .2em; font-size: 15px; }
.leistungen_inhalt .wp-block-column:last-child p { margin: .4em 0; }

/* Seitenkopf mit Bild und Titel */
.her-kopfbild { min-height: 350px !important; padding: 0 0 18px 0 !important; margin: 0 0 30px !important; }
.her-kopfbild .wp-block-cover__inner-container { max-width: 1140px !important; margin: 0 auto !important; width: 100% !important; padding-left: 54px; box-sizing: border-box; }
h1.her-seitentitel { display: inline-block; background: #fff; color: var(--her-rot); font-size: 28px; padding: 8px 14px; margin: 0; }

/* ---------- Startseite ---------- */
.her-slider { position: relative; width: 100%; aspect-ratio: 1400 / 540; max-height: 560px; overflow: hidden; background: #fff; }
.her-folie { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.her-folie.ist-aktiv { opacity: 1; z-index: 1; }
.her-slider-bild { width: 100%; height: 100%; object-fit: cover; display: block; }
.her-folie-text { position: absolute; }
.her-folie-logo { left: 8.6%; top: 18%; background: rgba(255, 255, 255, .8); display: flex; align-items: center; gap: 12px; padding: 30px 16px; }
.her-folie-logo img { width: 240px; height: auto; }
.her-gross-rot { margin: 0; color: var(--her-rot); font-weight: 700; font-size: clamp(16px, 2.2vw, 30px); }
.her-folie-titel { right: 8.6%; top: 4%; text-align: right; }
.her-folie-titel p { display: inline-block; margin: 0 0 12px; padding: 6px 16px; font-weight: 700; font-size: clamp(16px, 2.4vw, 32px); line-height: 1.3; }
.her-titel-1 { background: rgba(255, 255, 255, .85); color: var(--her-rot); }
.her-titel-2 { background: var(--her-rot); color: #fff; }
.her-folie-titel p + p { display: table; margin-left: auto; }

.her-zeile.so-mobile { margin-top: -50px !important; position: relative; z-index: 2; gap: 3% !important; justify-content: center; }
.so-mobile .wp-block-column { flex: 0 1 auto !important; flex-basis: auto !important; width: auto !important; min-width: min-content; }
.her-zeile.so-mobile { max-width: 1140px; margin-left: auto !important; margin-right: auto !important; }
.so-mobile .her-el.standort-header { padding-left: 12px; padding-right: 12px; }
.her-el.standort-header { white-space: nowrap; hyphens: none; -webkit-hyphens: none; padding: 18px 10px 14px; font-family: var(--wp--preset--font-family--gothic); text-align: center; }
.standort-header h2, .standort-header h5 { text-wrap: nowrap; white-space: nowrap; }
.standort-header p { text-wrap: wrap; white-space: normal; }
.standort-header.her-rot h2, .standort-header.her-rot p { text-wrap: wrap; white-space: normal; }
.standort-header h2 { font-family: var(--wp--preset--font-family--gothic); font-weight: 400; color: var(--her-rot); font-size: 27px; margin: 0; letter-spacing: .5px; }
.standort-header h5 { font-family: var(--wp--preset--font-family--gothic); font-weight: 400; text-transform: none; font-size: 21px; letter-spacing: 1.3px; color: #333; margin: 6px 0 0; }
.standort-header p { margin: 8px 0 0; line-height: 1.25; }
.standort-header a { color: #535353 !important; text-decoration: none; font-size: 25px; }
.her-el.standort-header.her-rot { padding: 26px 10px 20px; margin-top: 40px; }
.standort-header.her-rot h2.her-gross { color: #fff; font-size: 58px; line-height: 1; }
.standort-header.her-rot a { color: #000 !important; font-size: 24px; }
.her-el.emergency-call h2, .her-el.emergency-call p { text-align: center; font-family: var(--wp--preset--font-family--facit); font-weight: 700; font-size: 27px; color: #333; text-transform: none; margin: 18px 0 30px; }
.Leistungen_Titel h2 { text-align: center; font-size: 26px; margin: 0; padding: 14px 20px; }
.her-zeile .wp-block-column > .her-el.Leistungen_Titel { margin-top: 50px; }
.her-el.srt-leistung, .her-el.srt-leistung-single { padding: 40px 25px 30px; margin-top: 15px; box-sizing: border-box; }
.srt-leistung h2, .srt-leistung-single h2 { color: #363636; font-size: 24px; margin: 26px 0 14px; }
.srt-leistung p, .srt-leistung-single p { font-size: 15px; line-height: 1.8; }
.wp-block-columns.show_big { margin-top: 0; }
.wp-block-columns.show_big + .wp-block-columns.show_big { margin-top: 60px; }
.wp-block-columns.show_big .wp-block-column { display: flex; flex-direction: column; gap: 40px; }
.her-zeile.srt-news, .her-zeile.srt-jobs, .her-zeile.map-container, .wp-block-column > .her-zeile.her-weiss { padding: 10px 6px 20px; }
.her-zeile .wp-block-column > .her-zeile.her-weiss > h2, .her-zeile.srt-news > h2, .her-zeile.srt-jobs > h2 { margin: 18px 0 30px; }
.srt-jobs ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.srt-jobs .has-text-align-right, .srt-news .has-text-align-right { text-align: right; }
.her-zeile .wp-block-column > .her-zeile.her-weiss { padding: 10px 10px 16px; }
.her-zeile.map-container { padding: 30px 2% 40px; }

/* aufeinanderfolgende weisse Bloecke innerhalb einer Spalte bilden einen Kasten (Referenzen) */
.wp-block-column > .her-weiss + .her-weiss, .wp-block-column > .her-weiss + .wp-block-columns.her-weiss, .wp-block-column > .wp-block-columns.her-weiss + .her-weiss { margin-top: 0 !important; }
.wp-block-column > .wp-block-columns.her-zeile.her-weiss { margin-top: 0; padding: 10px 4%; gap: 3%; }

/* News-Liste */
.her-newsliste { display: flex; flex-direction: column; gap: 22px; }
.her-news { display: grid; grid-template-columns: 42% 1fr; gap: 16px; border-bottom: 1px solid #ccc; padding-bottom: 18px; }
.her-news-bild img { width: 100%; height: auto; display: block; }
.her-news-titel { margin: 0; font-size: 18px; }
.her-news-titel a { color: var(--her-rot); text-decoration: none; }
.her-news-datum { margin: 6px 0 4px; font-size: 13px; color: #777; border-bottom: 1px solid #ddd; }
.her-news-auszug { font-size: 14px; line-height: 1.8; margin: 0; }
.her-news-mehr { margin: 6px 0 0; font-size: 14px; }
.her-zeile.srt-news-page { max-width: 990px; margin: 40px auto; background: #fff; padding: 30px 4%; }
.her-news-einzeln { padding: 30px 5%; margin-top: 40px; }
.her-news-einzeln .her-news-titel { font-size: 26px; color: var(--her-rot); }
.her-news-einzeln .her-news-bild img { max-width: 100%; height: auto; }

/* Bilder, Galerien */
.her-galerie { gap: 10px !important; }
.her-bildtext { gap: 4%; }
.wp-block-image img { height: auto; }

/* Seitenleiste „Unsere Kunden / Leistungen“ */
.her-seitenlink { background: var(--her-rot); margin: 0 0 8px !important; padding: 6px 8px 6px 4px; min-height: 40px; }
.her-seitenlink p { margin: 0; font-weight: 700; font-size: 14px; text-transform: uppercase; }
.her-seitenlink a { color: #fff !important; text-decoration: none; }
.her-seitenlink a:hover { color: #333 !important; }
.her-seitenlink .her-symbol { margin: 0; }
.her-seitenlink .her-symbol img { height: 26px; width: auto; }
.leistungen_inhalt .wp-block-column:last-child > h2, .leistungen_inhalt .wp-block-column:last-child > .her-el > h2 { color: #333; font-size: 19px; margin: 18px 0 8px; }

/* ---------- Formulare (Contact Form 7) ---------- */
.her-el.her-formular { padding: 0 6% 5%; margin-top: 0 !important; }
.wpcf7 .her-formtitel { grid-column: 1 / -1; font-size: 17px; font-weight: 400; text-transform: none; color: #333; border-bottom: 1px solid #ddd; margin: 10px 0 14px; padding-bottom: 2px; }
.wpcf7 form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 9%; }
.wpcf7 form > * { grid-column: auto; }
.wpcf7 .her-breit, .wpcf7 .her-hinweis, .wpcf7 .wpcf7-response-output { grid-column: 1 / -1; }
.wpcf7 .her-absenden { align-self: start; margin-top: 22px; }
.wpcf7 .her-feld { margin: 0 0 10px; font-size: 14px; font-weight: 700; line-height: 1.6; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 textarea { width: 100%; box-sizing: border-box; border: 0; background: #e8e8e8; padding: 7px 10px; font: inherit; font-weight: 400; }
.wpcf7 textarea { height: 110px; }
.wpcf7 .wpcf7-list-item { margin: 0 14px 0 0; font-weight: 400; }
.wpcf7 .her-zustimmung { font-weight: 400; }
.wpcf7 .her-absenden input[type=submit] { background: #6b6b6b; color: #fff; border: 0; padding: 10px 26px; font: inherit; cursor: pointer; }
.wpcf7 .her-absenden input[type=submit]:hover { background: var(--her-rot); }
.wpcf7 .her-hinweis { font-weight: 400; font-size: 13px; margin: 0 0 8px; }
.her-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Fuss ---------- */
.her-fuss { margin-top: 0 !important; }
.her-fussbalken { background: var(--her-rot); color: #fff; margin: 60px 0 0; padding: 4px 10%; font-size: 21px; font-weight: 600; }
.her-fuss-innen { background: #eee; padding: 60px 10% 40px; font-size: 14px; color: #444; }
.her-rechtliches { max-width: 620px; margin: 0; line-height: 1.85; }
.her-rechtliches a { color: var(--her-rot); text-decoration: none; }
.her-rechtliches a:hover { text-decoration: underline; }
.her-social .wp-social-link svg { width: 30px; height: 30px; }

/* ---------- Responsiv ---------- */
@media (max-width: 1100px) {
	.her-menue { font-size: 19px; }
	.her-menue .wp-block-navigation-item__content { padding: 0 9px; }
	.standort-header a { font-size: 20px; }
}
@media (max-width: 781px) {
	:root { --her-kopf: 80px; }
	.her-logo img { width: 190px !important; max-height: 72px; }
	.her-zeile.srt_special { padding: 0 16px 30px; }
	.her-zeile.so-mobile { margin-top: 10px !important; display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px !important; }
	.her-folie-logo { left: 4%; right: 4%; top: 10%; padding: 10px; }
	.her-folie-logo img { width: 110px; }
	.her-slider { aspect-ratio: 4 / 3; }
	.standort-header.her-rot h2.her-gross { font-size: 40px; }
	.her-el.emergency-call h2, .her-el.emergency-call p { font-size: 21px; }
	.wpcf7 form { grid-template-columns: 1fr; }
	.her-news { grid-template-columns: 1fr; }
	.her-kopfbild { min-height: 200px !important; }
	.her-fuss-innen { padding: 30px 16px; }
	.her-fussbalken { padding: 4px 16px; }
}
.her-inline-icon { height: 45px; width: auto; vertical-align: middle; margin-right: 15px; }
