/*
Theme Name: Pixels & Bits
Theme URI: https://pixels-and-bits.ch
Author: MAXWINTER
Author URI: https://maxwinter.eu
Description: Schlankes Block-Theme für Pixels & Bits. Keine Plugins nötig: Portfolio, SEO-Meta, Kontaktformular, Baustellenmodus und Datenschutz-Härtung sind integriert. Alle Schriften lokal.
Version: 1.5.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.3
License: Proprietary
Text Domain: pixels-bits
*/

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { height: auto; }
::selection { background: var(--wp--preset--color--accent); color: #fff; }
.screen-reader-text:focus { clip: auto; height: auto; width: auto; padding: 10px; background: #fff; z-index: 100000; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: manual; }
mark.has-inline-color { background: transparent; }

/* ---------- Header ---------- */
.pb-header-wrap { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); transition: box-shadow .3s ease; }
.admin-bar .pb-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .pb-header-wrap { top: 46px; } }
.pb-header-wrap.is-scrolled { box-shadow: 0 1px 0 var(--wp--preset--color--line); }
.pb-header { max-width: var(--wp--style--global--wide-size); margin: 0 auto; padding: 22px var(--wp--preset--spacing--40); gap: 32px; transition: padding .3s ease; }
.pb-header-wrap.is-scrolled .pb-header { padding-top: 14px; padding-bottom: 14px; }
.pb-header .wp-block-site-logo img { width: 190px; max-width: 46vw; }
.pb-nav { font-family: var(--wp--preset--font-family--body); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.pb-nav .wp-block-navigation-item__content { padding: 6px 0; position: relative; }
.pb-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width .3s ease; }
.pb-nav .wp-block-navigation__container > .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.pb-nav .current-menu-item > .wp-block-navigation-item__content::after { width: 100%; }
.pb-nav .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--line) !important; padding: 10px 0 !important; min-width: 230px !important; }
.pb-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 8px 20px !important; }
.pb-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 40px 30px; }
.pb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 22px; font-size: 15px; }
.pb-header-cta .wp-block-button__link { padding: 12px 22px; font-size: 11px; }


/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link, .pb-form button { transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.wp-block-button__link:hover, .pb-form button:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 1px solid currentColor; color: inherit; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; }
.pb-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; border-color: #fff; color: var(--wp--preset--color--ink); }
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--wp--preset--color--accent-dark); }

/* ---------- Sektionen ---------- */
.pb-section { padding-top: var(--wp--preset--spacing--80); padding-bottom: var(--wp--preset--spacing--80); }
.pb-section:not(.pb-dark):not(.pb-light) + .pb-section:not(.pb-dark):not(.pb-light) { padding-top: 0; }
.pb-dark { background: var(--wp--preset--color--ink); color: rgba(255,255,255,.72); }
.pb-dark :where(h1,h2,h3,h4,h5,h6), .pb-dark .is-style-eyebrow { color: #fff; }
.pb-dark .is-style-eyebrow { opacity: .6; }
.pb-dark a:not(.wp-element-button) { color: #fff; }
.pb-light { background: var(--wp--preset--color--light); }
.is-style-eyebrow { font-family: var(--wp--preset--font-family--body); font-size: 12px !important; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--wp--preset--color--ink); opacity: .55; margin-bottom: 18px !important; }
.pb-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.75; }
.pb-center { text-align: center; }
.pb-narrow { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }

/* ---------- Hero ---------- */
.pb-hero { min-height: calc(100vh - 90px) !important; min-height: calc(100svh - 90px) !important; }
.pb-hero h1 { font-size: clamp(1.9rem, 5.2vw, 4.4rem); letter-spacing: .1em; line-height: 1.12; }
.pb-hero .pb-hero-sub { font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--wp--preset--color--ink); max-width: 620px; margin-inline: auto; }
.pb-scroll { display: block; width: 22px; height: 38px; margin: 40px auto 0; border: 1px solid currentColor; border-radius: 12px; position: relative; opacity: .6; }
.pb-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; background: currentColor; border-radius: 2px; animation: pb-scroll 1.8s infinite; }
@keyframes pb-scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Seiten-Kopf ---------- */
.pb-pagehead { min-height: clamp(260px, 38vw, 440px) !important; }
.pb-pagehead .wp-block-post-title { font-size: clamp(1.8rem, 4.4vw, 3.4rem); letter-spacing: .12em; }
.pb-pagehead-plain { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--40); border-bottom: 1px solid var(--wp--preset--color--line); }

/* ---------- Leistungs-Kacheln ---------- */
.pb-tiles { gap: 0 !important; border-top: 1px solid var(--wp--preset--color--line); border-left: 1px solid var(--wp--preset--color--line); }
.pb-tile { border-right: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); padding: clamp(28px, 3.4vw, 48px) !important; position: relative; transition: background-color .35s ease; }
.pb-tile:hover { background: var(--wp--preset--color--light); }
.pb-tile .pb-icon img { width: 52px; height: 52px; }
.pb-tile h3 { margin-top: 26px !important; }
.pb-tile p { margin-bottom: 0; }
.pb-tile .pb-tile-link { position: absolute; inset: 0; z-index: 1; font-size: 0; }
.pb-tile .pb-tile-link a { display: block; width: 100%; height: 100%; }
.pb-tile.is-linked::after { content: "→"; position: absolute; right: 28px; top: 28px; color: var(--wp--preset--color--accent); opacity: 0; transform: translateX(-8px); transition: all .3s ease; }
.pb-tile.is-linked:hover::after { opacity: 1; transform: none; }

/* Bildkacheln (Leistungen-Übersicht) */
.pb-imgtiles .wp-block-cover { min-height: 300px !important; transition: transform .5s ease; }
.pb-imgtiles .wp-block-cover h3 a { color: #fff; text-decoration: none; }
.pb-imgtiles .wp-block-cover h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.pb-imgtiles .wp-block-cover .wp-block-cover__image-background { transition: transform .8s ease; }
.pb-imgtiles .wp-block-cover:hover .wp-block-cover__image-background { transform: scale(1.06); }

/* ---------- Nummern-Boxen ---------- */
.pb-steps { gap: 0 !important; }
.pb-step { padding: clamp(32px, 4vw, 56px) !important; background: #111; color: rgba(255,255,255,.7); }
.pb-step:nth-child(2) { background: #1a1a1a; }
.pb-step:nth-child(3) { background: #232323; }
.pb-step .pb-num { font-family: var(--wp--preset--font-family--display); font-size: 2.6rem; line-height: 1; color: var(--wp--preset--color--accent); margin-bottom: 22px; }
.pb-step h3 { color: #fff; }

/* Partner-Punkte (Liste mit Linien) */
.pb-points { border-top: 1px solid rgba(255,255,255,.18); }
.pb-point { border-bottom: 1px solid rgba(255,255,255,.18); padding: 26px 0 !important; gap: 28px !important; }
.pb-point .pb-num { font-family: var(--wp--preset--font-family--display); color: var(--wp--preset--color--accent); font-size: 1rem; min-width: 34px; margin: 4px 0 0; }
.pb-point h3 { margin: 0 0 6px !important; }
.pb-point p { margin: 0; }

/* ---------- Bilder ---------- */
.wp-block-image.is-style-frame { position: relative; padding: 0 14px 14px 0; }
.wp-block-image.is-style-frame img { position: relative; z-index: 1; }
.wp-block-image.is-style-frame::before { content: ""; position: absolute; left: 14px; top: 14px; right: 0; bottom: 0; border: 1px solid var(--wp--preset--color--ink); }

/* ---------- Referenzen ---------- */
.pb-logos { gap: 0 !important; border-top: 1px solid var(--wp--preset--color--line); border-left: 1px solid var(--wp--preset--color--line); }
.pb-logos .wp-block-image { margin: 0; border-right: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); display: flex; align-items: center; justify-content: center; padding: 34px 26px; min-height: 150px; }
.pb-logos .wp-block-image img { max-height: 70px; width: auto; object-fit: contain; opacity: 1; filter: none; transition: transform .3s ease; }
.pb-logos .wp-block-image:hover img { transform: scale(1.05); }

/* ---------- Team ---------- */
.pb-team { gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50) !important; }
.pb-member .wp-block-image { margin-bottom: 22px; overflow: hidden; }
.pb-member .wp-block-image img { aspect-ratio: 4/3; object-fit: cover; width: 100%; filter: grayscale(1); transition: filter .5s ease, transform .6s ease; }
.pb-member:hover .wp-block-image img { filter: none; transform: scale(1.03); }
.pb-member h3 { margin-bottom: 4px !important; }
.pb-member .pb-role { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--accent); margin-top: 0; }
.pb-quote { border: 0; padding: 0; font-family: var(--wp--preset--font-family--display); text-transform: uppercase; letter-spacing: .08em; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.5; color: var(--wp--preset--color--ink); }
.pb-quote cite { display: block; margin-top: 14px; font-family: var(--wp--preset--font-family--body); font-size: 12px; letter-spacing: .25em; color: var(--wp--preset--color--accent); font-style: normal; }

/* ---------- Portfolio ---------- */
.pb-work .wp-block-post-template { gap: clamp(18px, 2.4vw, 34px) !important; }
.pb-work .wp-block-post { position: relative; }
.pb-work .wp-block-post-featured-image { margin: 0; overflow: hidden; background: var(--wp--preset--color--light); }
.pb-work .wp-block-post-featured-image img { aspect-ratio: 4/3; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.pb-work .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.06); }
.pb-work .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-size: 13px !important; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-top: 16px !important; }
.pb-work .wp-block-post-title a { text-decoration: none; }
.pb-work .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.pb-gallery .wp-block-image { margin-bottom: clamp(16px, 2vw, 28px); }
.pb-postnav { border-top: 1px solid var(--wp--preset--color--line); padding-top: 30px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.pb-postnav a { text-decoration: none; }

/* ---------- Formular ---------- */
.pb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.pb-form .pb-full { grid-column: 1 / -1; }
.pb-form label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--wp--preset--color--ink); margin-bottom: 8px; }
.pb-form input[type=text], .pb-form input[type=email], .pb-form input[type=tel], .pb-form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--wp--preset--color--line); background: #fff; padding: 15px 16px; font: inherit; font-size: 16px; color: var(--wp--preset--color--ink); border-radius: 2px; transition: border-color .2s ease; }
.pb-form input:focus, .pb-form textarea:focus { border-color: var(--wp--preset--color--ink); outline: none; }
.pb-form textarea { min-height: 180px; resize: vertical; }
.pb-form .pb-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.pb-form .pb-check input { margin-top: 5px; accent-color: var(--wp--preset--color--accent); width: 18px; height: 18px; flex: none; }
.pb-form .pb-check label { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: inherit; margin: 0; }
.pb-form button { justify-self: start; border: 0; cursor: pointer; background: var(--wp--preset--color--accent); color: #fff; font-family: var(--wp--preset--font-family--body); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: 18px 36px; border-radius: 2px; }
.pb-form button:hover { background: var(--wp--preset--color--accent-dark); }
.pb-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.pb-notice { grid-column: 1 / -1; padding: 16px 20px; border-left: 3px solid var(--wp--preset--color--accent); background: var(--wp--preset--color--light); color: var(--wp--preset--color--ink); }
.pb-notice.is-ok { border-color: #2e7d32; }
@media (max-width: 640px) { .pb-form { grid-template-columns: 1fr; } }
.pb-contactbox p { margin: 0 0 6px; }

/* ---------- Rechtstexte ---------- */
.pb-legal h2 { font-size: 1.15rem; letter-spacing: .14em; margin-top: 2.6em; }
.pb-legal h3 { margin-top: 2em; }
.pb-legal p, .pb-legal li { font-size: 16px; }

/* ---------- Footer ---------- */
.pb-footer { background: var(--wp--preset--color--light); font-size: 14px; }
.pb-footer .wp-block-site-logo img { width: 170px; }
.pb-footer h4 { font-family: var(--wp--preset--font-family--body); font-size: 11px; font-weight: 600; letter-spacing: .25em; margin-bottom: 14px; }
.pb-footer p { margin: 0 0 6px; }
.pb-footer a { text-decoration: none; }
.pb-footer a:hover { color: var(--wp--preset--color--accent); }
.pb-footer-bottom { border-top: 1px solid var(--wp--preset--color--line); font-size: 12px; letter-spacing: .08em; }

/* ---------- Animation ---------- */
.pb-js .pb-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.pb-js .pb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pb-js .pb-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
  .pb-tiles, .pb-logos { grid-template-columns: 1fr 1fr !important; }
  .pb-section { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--60); }
}
@media (max-width: 520px) {
  .pb-tiles { grid-template-columns: 1fr !important; }
  .pb-hero h1 { letter-spacing: .06em; }
  h2 { letter-spacing: .08em !important; }
}

/* ---------- Ergänzungen 1.0.1 ---------- */
.pb-nav .wp-block-navigation__container { flex-wrap: nowrap; }
@media (max-width: 1180px) { .pb-nav { --navigation-layout-gap: 22px; } .pb-nav .wp-block-navigation__container { gap: 22px !important; } }
@media (max-width: 1100px) { .pb-header .pb-header-cta { display: none !important; } }
.pb-tile h3 { letter-spacing: .12em; hyphens: auto; -webkit-hyphens: auto; }
.pb-logos .pb-logo-text { display: flex; align-items: center; justify-content: center; margin: 0; min-height: 150px; border-right: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); font-family: var(--wp--preset--font-family--display); font-size: 1.6rem; letter-spacing: .32em; color: var(--wp--preset--color--ink); }
.pb-logos .wp-block-image img { filter: brightness(.55) contrast(2); }
.pb-project-meta { font-size: 15px; line-height: 1.7; padding-bottom: var(--wp--preset--spacing--50); margin-bottom: var(--wp--preset--spacing--50) !important; border-bottom: 1px solid var(--wp--preset--color--line); }
.pb-project-meta strong { color: var(--wp--preset--color--ink); font-weight: 600; }
.pb-project-meta p { margin: 0 0 6px; }
.pb-small { font-size: 13px; letter-spacing: .05em; }
.pb-cta .wp-block-heading { font-size: clamp(1.4rem, 3vw, 2.4rem); }
.pb-imgtiles .wp-block-cover h3 { letter-spacing: .16em; }
.pb-footer a[href^="mailto"] { white-space: nowrap; }

/* ---------- 1.1.0: Seitenkopf lesbar, Einstellungen ---------- */
.pb-pagehead { min-height: min(var(--pb-head-height, 440px), 70vh) !important; }
.pb-pagehead .wp-block-cover__background { opacity: var(--pb-head-overlay, .55) !important; background: #0b0b0b !important; }
.pb-pagehead::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 70%); }
.pb-pagehead .wp-block-cover__inner-container { z-index: 2; }
.pb-pagehead .wp-block-post-title, .pb-pagehead .wp-block-post-title a { color: #fff !important; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.pb-pagehead .wp-block-post-title::after { content: ""; display: block; width: 48px; height: 2px; margin: 26px auto 0; background: var(--wp--preset--color--accent); }
.pb-tile .pb-icon img { width: 56px; height: 56px; }
.pb-footer-claim p { margin: var(--wp--preset--spacing--30) 0 0; }
.pb-footer .wp-block-shortcode p, .pb-footer-bottom p { margin: 0 0 6px; }

/* 1.1.1 Kontaktformular-Fehler */
.pb-field-error { display: block; margin-top: 6px; font-size: 13px; color: var(--wp--preset--color--accent); }
.pb-form [aria-invalid="true"] { border-color: var(--wp--preset--color--accent) !important; }
.pb-form .pb-check input[aria-invalid="true"] { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }

/* ==========================================================
   1.2.0 Mobiles Menü
   ========================================================== */
.pb-burger { display: none; align-items: center; gap: 12px; margin-left: auto; padding: 10px 0 10px 10px; background: none; border: 0; color: var(--wp--preset--color--ink); font: 600 11px/1 var(--wp--preset--font-family--body); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pb-burger__icon { position: relative; display: block; width: 30px; height: 12px; }
.pb-burger__icon i { position: absolute; right: 0; height: 2px; background: currentColor; transition: width .35s cubic-bezier(.65,0,.35,1), transform .35s cubic-bezier(.65,0,.35,1); }
.pb-burger__icon i:first-child { top: 0; width: 30px; }
.pb-burger__icon i:last-child { bottom: 0; width: 18px; }
.pb-burger:hover .pb-burger__icon i:last-child, .pb-burger:focus-visible .pb-burger__icon i:last-child { width: 30px; }
.pb-burger:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 4px; }

@media (max-width: 1100px) {
	.pb-js .pb-header .pb-nav { display: none !important; }
	.pb-js .pb-burger { display: inline-flex; }
}
@media (max-width: 420px) { .pb-burger__label { display: none; } }

.pb-mm {
	--x: 100%; --y: 0px;
	position: fixed; inset: 0; z-index: 100000;
	display: grid; grid-template-rows: auto 1fr auto;
	padding: 0 var(--wp--preset--spacing--40, 24px) calc(28px + env(safe-area-inset-bottom));
	overflow-y: auto; overscroll-behavior: contain;
	color: #fff;
	background:
		radial-gradient(circle at 100% 0%, rgba(192,0,0,.38), rgba(192,0,0,0) 46%),
		radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px) 0 0 / 22px 22px,
		#0d0d0d;
	clip-path: circle(0px at var(--x) var(--y));
	visibility: hidden;
	transition: clip-path .75s cubic-bezier(.77,0,.18,1), visibility 0s linear .75s;
}
.pb-mm-open .pb-mm { clip-path: circle(160vmax at var(--x) var(--y)); visibility: visible; transition: clip-path .75s cubic-bezier(.77,0,.18,1), visibility 0s; }
.pb-mm-open, .pb-mm-open body { overflow: hidden; }

.pb-mm__bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; padding-top: env(safe-area-inset-top); border-bottom: 1px solid rgba(255,255,255,.1); }
.pb-mm__logo { color: #fff; text-decoration: none; font-family: var(--wp--preset--font-family--display); }
.pb-mm__logo img { display: block; width: 150px; height: auto; filter: brightness(0) invert(1); }
.pb-mm__close { position: relative; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: none; cursor: pointer; transition: transform .45s cubic-bezier(.65,0,.35,1), border-color .3s, background .3s; }
.pb-mm__close i { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; background: #fff; transform: rotate(45deg); }
.pb-mm__close i:last-child { transform: rotate(-45deg); }
.pb-mm__close:hover, .pb-mm__close:focus-visible { transform: rotate(90deg); border-color: var(--wp--preset--color--accent); background: var(--wp--preset--color--accent); outline: none; }

.pb-mm__nav { align-self: center; padding: 36px 0; }
.pb-mm__list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pb-mm__item { border-bottom: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateY(28px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.pb-mm-open .pb-mm__item { opacity: 1; transform: none; transition-delay: calc(.28s + var(--i) * .07s); }
.pb-mm__row { display: flex; align-items: center; gap: 12px; }
.pb-mm__link { flex: 1; display: flex; align-items: baseline; gap: 16px; padding: 16px 0; color: #fff; text-decoration: none; font-family: var(--wp--preset--font-family--display); font-size: clamp(26px, 7.4vw, 46px); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.pb-mm__num { flex: none; width: 26px; font-family: var(--wp--preset--font-family--body); font-size: 11px; font-weight: 600; letter-spacing: .14em; color: rgba(255,255,255,.4); transition: color .3s; }
.pb-mm__text { position: relative; transition: transform .45s cubic-bezier(.2,.8,.2,1), color .3s; }
.pb-mm__text::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--wp--preset--color--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.pb-mm__link:hover .pb-mm__text, .pb-mm__link:focus-visible .pb-mm__text { transform: translateX(8px); }
.pb-mm__link:hover .pb-mm__text::after, .pb-mm__link:focus-visible .pb-mm__text::after { transform: scaleX(1); }
.pb-mm__link:hover .pb-mm__num, .pb-mm__link:focus-visible .pb-mm__num, .pb-mm__item.is-current .pb-mm__num { color: var(--wp--preset--color--accent); }
.pb-mm__link:focus-visible { outline: none; }
.pb-mm__item.is-current > .pb-mm__row .pb-mm__text::before { content: ""; position: absolute; right: -16px; bottom: .12em; width: 8px; height: 8px; background: var(--wp--preset--color--accent); }

.pb-mm__toggle { position: relative; flex: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; background: none; cursor: pointer; transition: transform .4s cubic-bezier(.65,0,.35,1), background .3s, border-color .3s; }
.pb-mm__toggle i { position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: #fff; }
.pb-mm__toggle i:last-child { transform: rotate(90deg); transition: transform .4s cubic-bezier(.65,0,.35,1); }
.pb-mm__item.is-open .pb-mm__toggle { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); transform: rotate(180deg); }
.pb-mm__item.is-open .pb-mm__toggle i:last-child { transform: rotate(0deg); }
.pb-mm__toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.pb-mm__subwrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }
.pb-mm__item.is-open .pb-mm__subwrap { grid-template-rows: 1fr; }
.pb-mm__sub { overflow: hidden; list-style: none; margin: 0; padding: 0 0 0 42px; }
.pb-mm__sub li:last-child { padding-bottom: 18px; }
.pb-mm__sub a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; color: rgba(255,255,255,.72); text-decoration: none; font-family: var(--wp--preset--font-family--body); font-size: 17px; font-weight: 500; transition: color .25s, gap .3s; }
.pb-mm__sub a::before { content: ""; width: 14px; height: 1px; background: currentColor; transition: width .3s, background .3s; }
.pb-mm__sub a:hover, .pb-mm__sub a:focus-visible, .pb-mm__sub a[aria-current] { color: #fff; outline: none; }
.pb-mm__sub a:hover::before, .pb-mm__sub a:focus-visible::before, .pb-mm__sub a[aria-current]::before { width: 24px; background: var(--wp--preset--color--accent); }

.pb-mm__foot { display: grid; gap: 18px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.pb-mm-open .pb-mm__foot { opacity: 1; transform: none; transition-delay: .7s; }
.pb-mm__cta { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: var(--wp--preset--color--accent); color: #fff; text-decoration: none; font: 600 12px/1 var(--wp--preset--font-family--body); letter-spacing: .2em; text-transform: uppercase; transition: background .3s; }
.pb-mm__cta span { font-size: 18px; letter-spacing: 0; transition: transform .3s; }
.pb-mm__cta:hover, .pb-mm__cta:focus-visible { background: var(--wp--preset--color--accent-dark); outline: none; }
.pb-mm__cta:hover span, .pb-mm__cta:focus-visible span { transform: translateX(6px); }
.pb-mm__contact, .pb-mm__social { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.pb-mm__contact a, .pb-mm__social a { color: rgba(255,255,255,.72); text-decoration: none; }
.pb-mm__social a { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.pb-mm__contact a:hover, .pb-mm__social a:hover { color: #fff; }

@media (min-width: 1101px) { .pb-mm { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.pb-mm, .pb-mm-open .pb-mm { clip-path: none; transition: opacity .2s, visibility 0s linear .2s; opacity: 0; }
	.pb-mm-open .pb-mm { opacity: 1; transition: opacity .2s; }
	.pb-mm__item, .pb-mm__foot { transition: none; opacity: 1; transform: none; }
}

/* 1.2.1 Abstände zwischen Sektionen und Footer, Referenzen luftiger */
.wp-site-blocks > * { margin-block-start: 0 !important; }
.pb-main > .alignfull, .wp-site-blocks main > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.pb-logos { margin-top: var(--wp--preset--spacing--40) !important; }
.pb-logos .wp-block-image, .pb-logos .pb-logo-text { min-height: 210px; padding: 48px 32px; }
.pb-logos .wp-block-image img { max-height: 54px; max-width: 82%; height: auto; }
@media (max-width: 1100px) { .pb-logos .wp-block-image, .pb-logos .pb-logo-text { min-height: 170px; padding: 32px 18px; } .pb-logos .wp-block-image img { max-width: 88%; } }
.pb-logos .pb-logo-text { font-size: 1.25rem; }
@media (max-width: 781px) {
	.pb-logos .wp-block-image, .pb-logos .pb-logo-text { min-height: 130px; padding: 28px 22px; }
	.pb-logos .wp-block-image img { max-height: 38px; max-width: 82%; }
	.pb-logos .pb-logo-text { font-size: .95rem; letter-spacing: .24em; }
}
/* Sticky-Header: das Template-Part-Element selbst klebt (die innere Gruppe war in einem 60-px-Container eingesperrt). */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }
.pb-header-wrap { position: relative !important; top: auto !important; }

/* ==========================================================
   1.3.0 Cookie-Banner
   ========================================================== */
.pb-cc { position: fixed; left: 24px; bottom: 24px; z-index: 99990; width: min(440px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow-y: auto; padding: 30px 30px 22px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(192,0,0,.32), rgba(192,0,0,0) 55%), radial-gradient(rgba(255,255,255,.06) 1px, transparent 1.2px) 0 0 / 20px 20px, #0d0d0d; box-shadow: 0 24px 60px rgba(0,0,0,.28); opacity: 0; transform: translateY(24px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.pb-cc.is-visible { opacity: 1; transform: none; }
.pb-cc[hidden] { display: none; }
.pb-cc__eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.pb-cc__title { margin: 0 0 14px; font-family: var(--wp--preset--font-family--display); font-size: 26px; font-weight: 400; line-height: 1; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.pb-cc__title span { color: var(--wp--preset--color--accent); }
.pb-cc__text { margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.78); }
.pb-cc__prefs { display: grid; gap: 10px; margin: 0 0 20px; }
.pb-cc__prefs[hidden] { display: none; }
.pb-cc__opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); cursor: pointer; }
.pb-cc__opt span { display: grid; gap: 4px; }
.pb-cc__opt strong { font-size: 14px; font-weight: 600; color: #fff; }
.pb-cc__opt small { font-size: 12px; line-height: 1.45; color: rgba(255,255,255,.6); }
.pb-cc__opt code { font-size: 11px; color: rgba(255,255,255,.8); background: rgba(255,255,255,.08); padding: 1px 4px; }
.pb-cc__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pb-cc__opt i { position: relative; flex: none; width: 44px; height: 24px; border-radius: 12px; background: rgba(255,255,255,.2); transition: background .25s; }
.pb-cc__opt i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.pb-cc__opt input:checked + i { background: var(--wp--preset--color--accent); }
.pb-cc__opt input:checked + i::after { transform: translateX(20px); }
.pb-cc__opt input:focus-visible + i { outline: 2px solid #fff; outline-offset: 3px; }
.pb-cc__opt.is-locked { cursor: default; opacity: .7; }
.pb-cc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pb-cc__btn { padding: 15px 12px; border: 1px solid #fff; background: #fff; color: #111; font: 600 11px/1 var(--wp--preset--font-family--body); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.pb-cc__btn:hover, .pb-cc__btn:focus-visible { background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: #fff; outline: none; }
.pb-cc__btn--save { grid-column: 1 / -1; }
.pb-cc__btn[hidden] { display: none; }
.pb-cc.is-expanded .pb-cc__btn:not(.pb-cc__btn--save) { background: transparent; color: #fff; }
.pb-cc.is-expanded .pb-cc__btn:not(.pb-cc__btn--save):hover { background: var(--wp--preset--color--accent); }
.pb-cc__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 16px 0 0; font-size: 12px; }
.pb-cc__links a, .pb-cc__links button { padding: 0; border: 0; background: none; color: rgba(255,255,255,.6); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pb-cc__links a:hover, .pb-cc__links button:hover { color: #fff; }
@media (max-width: 600px) {
	.pb-cc { left: 0; right: 0; bottom: 0; width: 100%; max-height: 85vh; padding: 24px 20px calc(18px + env(safe-area-inset-bottom)); }
	.pb-cc__title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pb-cc { transition: opacity .2s; transform: none; } }
.pb-cc__id { margin: 2px 0 0; font-size: 11px; color: rgba(255,255,255,.5); word-break: break-all; }
.pb-cc__id[hidden] { display: none; }
.pb-cc__id code { font-size: 11px; color: rgba(255,255,255,.75); }
.pb-cc-link { display: none; }
.pb-cc-on .pb-cc-link { display: inline; }

/* ==========================================================
   1.5.0 Responsive-Feinschliff
   ========================================================== */
/* Keine Block-Lücken zwischen vollbreiten Sektionen im Seiteninhalt (weiße Streifen zwischen dunklen Flächen). */
.wp-block-post-content > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.pb-pagehead + * { margin-block-start: 0 !important; }

/* Raster: feste Spaltenzahlen der Block-Gruppen auf kleinen Bildschirmen auflösen. */
@media (max-width: 1024px) {
	.pb-team { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 900px) {
	.pb-steps { grid-template-columns: minmax(0, 1fr) !important; }
	.pb-imgtiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 781px) {
	.pb-team { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 560px) {
	.pb-team, .pb-imgtiles { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Lange Wörter (z. B. „Kommunikationsdesigner“) umbrechen statt überlaufen. */
.wp-block-post-content p, .wp-block-post-content li, .wp-block-post-content h3, .pb-footer p { overflow-wrap: break-word; }
.pb-step p, .pb-member p { hyphens: auto; -webkit-hyphens: auto; }
.wp-block-post-content h1, .wp-block-post-content h2, .wp-block-post-title { overflow-wrap: break-word; }

/* Touch-Ziele im Footer: mehr Höhe pro Link. */
@media (max-width: 1100px) {
	.pb-footer p a { display: inline-block; padding: 6px 0; }
}

/* Footer auf Tablet: 2 × 2 statt 4 schmaler Spalten. */
@media (min-width: 782px) and (max-width: 1100px) {
	.pb-footer .wp-block-columns { flex-wrap: wrap !important; row-gap: 40px; }
	.pb-footer .wp-block-columns > .wp-block-column { flex-basis: calc(50% - 2em) !important; flex-grow: 0 !important; }
}
.pb-footer a[href^="mailto:"] { overflow-wrap: anywhere; }

/* Box-Modell für Banner und mobiles Menü (verhindert Überbreite auf dem Handy). */
.pb-cc, .pb-cc *, .pb-mm, .pb-mm * { box-sizing: border-box; }

/* Leistungs-Kacheln auf dem Handy flacher, damit die Liste nicht endlos wird. */
@media (max-width: 560px) {
	.pb-imgtiles .wp-block-cover { min-height: 0 !important; aspect-ratio: 16 / 9; }
}

/* Kontaktformular: gleichmäßige Abstände, Senden-Button auf dem Handy volle Breite. */
.pb-form > p, .pb-form > div { margin: 0 !important; }
@media (max-width: 640px) { .pb-form button { width: 100%; justify-self: stretch; } }

/* Gestapelte Spalten auf dem Handy: mehr Luft zwischen den Blöcken (z. B. Formular und Kontaktdaten). */
@media (max-width: 781px) { .wp-block-post-content .wp-block-columns { row-gap: var(--wp--preset--spacing--50) !important; } }
