/*
Theme Name: TT5-beryllwinkelmann
Theme URI: 
Author: Beryll Winkelmann
Author URI: 
Description: Child-Theme des TwentyTwentyfive
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: tt5-beryllwinkelmann
Tags: 
*/


/* Ergänzungen zum Design (Handoff Claude Design, 11/2026). Nur was theme.json nicht abdeckt. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[id] { scroll-margin-top: 90px; }

body { font-variant-ligatures: none; }
* { text-wrap: pretty; }
h1 { text-wrap: balance; }
a { text-decoration-color: #7FA37A; text-underline-offset: 3px; }

/* Header: sticky (auf dem Template-Part-Wrapper), Unterkante, kompakte Navigation */
header.wp-block-template-part:has(> .site-header) {
	position: sticky;
	top: 0;
	z-index: 10;
}
.admin-bar header.wp-block-template-part:has(> .site-header) { top: 32px; }
@media (max-width: 782px) { .admin-bar header.wp-block-template-part:has(> .site-header) { top: 46px; } }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part:has(> .site-header) { top: 0; } }
.site-header { border-bottom: 1px solid var(--wp--preset--color--line-soft); }
.site-header .wp-block-site-title a { text-decoration: none; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation a:hover { color: var(--wp--preset--color--sage-dark); }
.site-header .wp-block-button__link { padding: 10px 18px; font-size: 14px; white-space: nowrap; }

/* Outline-Buttons: dünner Rand, füllen sich beim Hover dunkel */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border: 1px solid currentColor;
	padding: 13px 23px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
.wp-block-button.is-small > .wp-block-button__link { padding: 10px 18px; font-size: 14px; }
.wp-block-button.is-on-dark > .wp-block-button__link { color: var(--wp--preset--color--base); border-color: #5A5A54; text-decoration: none; }
.wp-block-button.is-on-dark > .wp-block-button__link:hover { background: var(--wp--preset--color--base); border-color: var(--wp--preset--color--base); color: var(--wp--preset--color--footer); }

/* Footer */
.site-footer p { margin: 0; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Kundenleiste: Namen mit Trennpunkt */
.names-inline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	font-family: var(--wp--preset--font-family--vollkorn);
	font-size: var(--wp--preset--font-size--names);
	line-height: 1.45;
}
.names-inline li { margin: 0; white-space: nowrap; }
.names-inline li:not(:last-child)::after { content: "·"; color: var(--wp--preset--color--sage); padding: 0 10px; }

/* Specs-Liste auf dunklem Grund */
.spec-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 14px 32px;
	font-size: 15px;
	line-height: 1.5;
}
.spec-list li { margin: 0; border-top: 1px solid var(--wp--preset--color--dark-line); padding-top: 12px; }

/* Credits-Zeilen in „Filme“ */
.credit-row { border-top: 1px solid var(--wp--preset--color--line); padding: 20px 0; }
.credit-row:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }

@media (min-width: 900px) { .is-sticky-heading { position: sticky; top: 110px; } }

/* FAQ (core/details) */
.faq .wp-block-details { margin: 0; }
.faq .wp-block-details:last-child { border-bottom: 1px solid var(--wp--preset--color--line); }
.faq .wp-block-details summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 0;
	font-family: var(--wp--preset--font-family--vollkorn);
	font-size: 21px;
	line-height: 1.3;
}
.faq .wp-block-details summary::-webkit-details-marker { display: none; }
.faq .wp-block-details summary::after { content: "+"; font-family: var(--wp--preset--font-family--fira-code); font-size: 20px; flex: none; }
.faq .wp-block-details[open] summary::after { content: "–"; }
.faq .wp-block-details summary:hover { color: var(--wp--preset--color--sage-dark); }
.faq .wp-block-details > p { margin: 0; padding: 0 48px 24px 0; font-size: 16px; color: var(--wp--preset--color--ink-soft); }

/* Bilder mit festem Seitenverhältnis */
.ratio-21-9 img { aspect-ratio: 21/9; object-fit: cover; width: 100%; }
.ratio-3-2 img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.ratio-4-5 img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* Startseite: Hero-Video im 21:9-Rahmen */
.bw-hero-video { overflow: hidden; min-height: 0; }

/* Leistungen: Textlink mit Pfeil */
.link-arrow { font-size: 15px; font-weight: 500; }

/* Credits-Zeilen sind Columns-Blöcke ohne Außenabstand */
.credits > .credit-row { margin: 0; }
.zdf-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.zdf-list li { margin: 0; }

/* Imagefilm & Industrie: zweispaltige linierte Liste */
.industry-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 32px; }
.industry-list li { margin: 0; padding: 14px 0; border-top: 1px solid var(--wp--preset--color--line); }
.industry-list strong { color: var(--wp--preset--color--contrast); font-weight: 500; }

/* Zitate in „Stimmen“ */
.wp-block-quote.is-quote-large { max-width: 980px; margin: 0; }
.wp-block-quote.is-quote-large p { font-size: var(--wp--preset--font-size--quote); line-height: 1.25; }
.wp-block-quote.is-quote-small { margin: 0; }
.wp-block-quote.is-quote-small p { font-size: 22px; line-height: 1.4; }
.wp-block-quote cite {
	display: block;
	margin-top: 20px;
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 15px;
	font-style: normal;
}
.wp-block-quote.is-quote-small cite { margin-top: 14px; font-size: 14px; }

/* Bildausschnitte */
.is-portrait img { object-position: 50% 30%; }
.is-kontakt-bild img { object-position: 60% 50%; }

/* Kontakt */
.measure-40 { max-width: 40ch; }
.kontakt-links p { margin: 0; }
.kontakt-links a { text-decoration-color: var(--wp--preset--color--sage); }

/* Kein Streifen zwischen letzter Sektion und Footer */
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }

/* Kundenleiste: Label fest 120px, Namen füllen den Rest */
.kunden-zeile > .is-style-label { flex: 0 0 120px; }
.kunden-zeile > .names-inline { flex: 1 1 420px; min-width: 0; }
.wp-block-list.names-inline li { margin: 0; }

/* Stimmen: zwei Zitate nebeneinander, darunter einspaltig */
.stimmen-grid.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }

/* Blog-Übersicht: „Weiterlesen →“ wie der Textlink auf der Startseite */
.link-arrow-more .wp-block-post-excerpt__more-link { font-size: 15px; font-weight: 500; }
.link-arrow-more .wp-block-post-excerpt__more-text { margin-top: 12px; }

/* Footer bei kurzen Seiten am unteren Rand */
.wp-site-blocks { min-height: 100dvh; display: flex; flex-direction: column; }
.admin-bar .wp-site-blocks { min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px)); }
.wp-site-blocks > main { flex: 1 0 auto; }

/* Vorher/Nachher-Regler (assets/js/vergleich.js). Ohne JS: Bilder untereinander. */
.bw-vergleich.is-ready .bw-vergleich__stage {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	--pos: 50%;
}
.bw-vergleich.is-ready .bw-vergleich__stage .wp-block-image { margin: 0; position: absolute; inset: 0; }
.bw-vergleich.is-ready .bw-vergleich__stage img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.bw-vergleich.is-ready .bw-vergleich__stage figcaption { display: none; }
.bw-vergleich.is-ready .is-vorher { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.bw-vergleich__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos);
	width: 2px;
	margin-left: -1px;
	background: var(--wp--preset--color--base);
	pointer-events: none;
}
.bw-vergleich__handle::after {
	content: "‹ ›";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 44px;
	height: 44px;
	border-radius: 999px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	display: grid;
	place-items: center;
	font-size: 18px;
	line-height: 1;
}
.bw-vergleich__label {
	position: absolute;
	top: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgb(38 38 36 / 0.7);
	color: var(--wp--preset--color--base);
	font-size: 13px;
	pointer-events: none;
}
.bw-vergleich__label.is-left { left: 12px; }
.bw-vergleich__label.is-right { right: 12px; }
.bw-vergleich__input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: ew-resize;
	touch-action: pan-y;
}
.bw-vergleich__input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 100%; }
.bw-vergleich__input::-moz-range-thumb { width: 44px; height: 100%; border: 0; }
.bw-vergleich__stage:has(.bw-vergleich__input:focus-visible) .bw-vergleich__handle::after {
	outline: 2px solid var(--wp--preset--color--sage-dark);
	outline-offset: 2px;
}
