/*
 Theme Name: Bricks Child Theme
 Theme URI: https://bricksbuilder.io/
 Description: Child-Theme für Bricks (Laivista Starter). Eigenes CSS/PHP hier, nicht im Bricks-Theme.
 Author: Laivista
 Author URI: https://laivista.ch
 Template: bricks
 Version: 1.0
 Text Domain: bricks
*/

/* ── Barrierefreiheit (Basis, wie laivista.ch A-004/A-009) ── */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--primary, #1F4FD8);
	outline-offset: 2px;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 9999;
	padding: 12px 16px; background: var(--ink, #1A1A1A); color: var(--surface, #fff);
	clip: auto; clip-path: none; width: auto; height: auto;
}
/* Tippflächen mind. 44 px für Knöpfe */
.button-primary, .button-secondary, .brxe-button { min-height: 44px; display: inline-flex; align-items: center; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Schriften PepperClub (lokal, SIL OFL) ── */
@font-face { font-family: "HK Serif"; src: url("fonts/hkserif-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "HK Serif"; src: url("fonts/hkserif-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/lato-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }


/* Menü (Offcanvas #pc-menu): Links nacheinander einblenden wie Enfold */
@keyframes pc-menu-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
#pc-menu.brx-open .pc-menu__link { animation: pc-menu-in .3s ease-out both; }
#pc-menu.brx-open .pc-menu__link:nth-child(1) { animation-delay: .35s; }
#pc-menu.brx-open .pc-menu__link:nth-child(2) { animation-delay: .42s; }
#pc-menu.brx-open .pc-menu__link:nth-child(3) { animation-delay: .49s; }
#pc-menu.brx-open .pc-menu__link:nth-child(4) { animation-delay: .56s; }
#pc-menu.brx-open .pc-menu__link:nth-child(5) { animation-delay: .63s; }
#pc-menu.brx-open .pc-menu__link:nth-child(6) { animation-delay: .70s; }
@media (prefers-reduced-motion: reduce) { #pc-menu.brx-open .pc-menu__link { animation: none; } }

/* Sticky Header (fixiert, 80 px): Inhalt beginnt darunter wie bei Enfold */
#brx-content { padding-top: 80px; }

/* Portfolio-Filter wie Enfold: «All / B2B / Bank …» als Textlinks */
.brxe-filter-radio.pc-filter { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.brxe-filter-radio.pc-filter .brx-filter-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.brxe-filter-radio.pc-filter[data-mode] > .brx-filter-options { flex-direction: row; flex-wrap: wrap; gap: 0; }
.brxe-filter-radio.pc-filter li { display: inline-flex; align-items: center; }
.brxe-filter-radio.pc-filter li + li::before { content: "/"; margin: 0 .5em; color: #767676; }
.brxe-filter-radio.pc-filter label { cursor: pointer; display: inline-flex; padding: 6px 0; }
.brxe-filter-radio.pc-filter .brx-input-indicator { display: none; }
.brxe-filter-radio.pc-filter .brx-option-text { font-family: Lato, Helvetica, Arial, sans-serif; font-size: 18px; color: #767676; }
.brxe-filter-radio.pc-filter .brx-option-active .brx-option-text, .brxe-filter-radio.pc-filter label:hover .brx-option-text { color: var(--primary); }
.brxe-filter-radio.pc-filter input:focus-visible ~ .brx-option-text { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Team-Karten wie Enfold: Foto mit weisser Überlagerung + runden Buttons beim Hover/Fokus */
.pc-team { display: flex; flex-direction: column; gap: 0; width: 100%; }
.pc-team__media { position: relative; overflow: hidden; }
.pc-team__media .pc-team__img { width: 100%; height: auto; display: block; }
.pc-team__social { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(255,255,255,.7); opacity: 0; transition: opacity .3s ease-out; }
.pc-team__media:hover .pc-team__social, .pc-team__social:focus-within { opacity: 1; }
.pc-team__icon { position: relative; width: 53px; height: 53px; border-radius: 50%; background: #fff; color: #919191; font-size: 0; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: color .2s; }
.pc-team__icon::before { content: ""; width: 19px; height: 19px; background: currentColor; -webkit-mask: var(--pc-ico) center / contain no-repeat; mask: var(--pc-ico) center / contain no-repeat; }
.pc-team__icon:hover, .pc-team__icon:focus-visible { color: var(--primary); }
.pc-team__icon--mail { --pc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 5h20v14H2z' fill='none'/%3E%3Cpath d='M2 6.5 12 13l10-6.5V5H2zM2 8.8V19h20V8.8l-10 6.5z'/%3E%3C/svg%3E"); }
.pc-team__icon--linkedin { --pc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3a2 2 0 1 1 0 4 2 2 0 0 1 0-4zM2 9h4v12H2zM9 9h4v1.7c.6-1 1.9-2 4-2 3.5 0 5 2 5 6V21h-4v-5.5c0-1.7-.5-3-2.2-3S13 14 13 15.6V21H9z'/%3E%3C/svg%3E"); }
.pc-team__icon--phone { --pc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.pc-team__icon--web { --pc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E"); }
/* Tooltip */
.pc-team__icon::after { content: attr(aria-label); position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #222; color: #fff; font: 400 16px/1 Lato, Helvetica, Arial, sans-serif; padding: 10px 14px; border-radius: 2px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.pc-team__icon:hover::after, .pc-team__icon:focus-visible::after { opacity: 1; }
.pc-team__name { font-family: "HK Serif", Georgia, serif; font-size: 31px; font-weight: 600; text-transform: none; color: #222; margin: 14px 0 4px; line-height: 1.2; }
.pc-team__job { font-family: Lato, Helvetica, Arial, sans-serif; font-size: 20px; color: #919191; margin: 0; }
@media (prefers-reduced-motion: reduce) { .pc-team__social, .pc-team__icon::after { transition: none; } }

/* Aufklapp-Bereiche «Personal references» wie Enfold */
.pc-accordion { border-top: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.pc-toggle { border: 1px solid #e8e8e8; background: #fff; }
.pc-toggle > summary { list-style: none; cursor: pointer; position: relative; padding: 9px 12px 9px 40px; font-family: Lato, Helvetica, Arial, sans-serif; font-size: 20px; color: #383838; }
.pc-toggle > summary::-webkit-details-marker { display: none; }
.pc-toggle > summary::before, .pc-toggle > summary::after { content: ""; position: absolute; left: 14px; top: 50%; width: 13px; height: 1px; background: #919191; }
.pc-toggle > summary::after { transform: rotate(90deg); transition: transform .2s; }
.pc-toggle[open] > summary::after { transform: rotate(0); }
.pc-toggle > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.pc-toggle__body { padding: 12px 30px 11px; border-top: 1px solid #e8e8e8; }
/* Abstand zwischen Team-Mitgliedern (Members/Contact) wie Enfold */
.pc-section .pc-row + .pc-row { margin-top: 64px; }
/* Textlinks rot wie Enfold */
#brx-content p a:not([class*="button"]), #brx-content li a { color: var(--primary); }
#brx-content p a:not([class*="button"]):hover { text-decoration: underline; }
/* Aufgeklappter Inhalt «Personal references» wie Enfold */
.pc-toggle__body { background: #f8f8f8; border-top: 0; padding: 12px 30px 11px; font-size: 20px; line-height: 33px; color: #383838; }
.pc-toggle__body h4 { font-family: "HK Serif", Georgia, serif; font-size: 22px; font-weight: 600; text-transform: none; color: #222; margin: 16px 0 4px; line-height: 1.4; }
.pc-toggle__body h4:first-child { margin-top: 0; }
.pc-toggle__body p { margin: 0 0 17px; }
.pc-toggle__body strong { font-weight: 700; color: #222; }

/* Spalten-Raster wie Enfold (Anteile 1/2, 1/3, 1/4, 1/5 …, leere Spalten als Abstandhalter) */
:root { --pc-gutter: clamp(32px, 6vw, 80px); --pc-content: 1210px; /* Inhaltsbreite wie live (Enfold 1210 px) – nur hier ändern */ }
.pc-row { max-width: var(--pc-content); margin: 0 auto; display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); column-gap: 0; row-gap: 48px; }
.pc-row > .pc-col { padding-inline: calc(var(--pc-gutter) / 2); }
.pc-row > :first-child { padding-left: 0; }
.pc-col--full { grid-column: span 60; }
.pc-col--1-2 { grid-column: span 30; } .pc-col--1-3 { grid-column: span 20; } .pc-col--2-3 { grid-column: span 40; }
.pc-col--1-4 { grid-column: span 15; } .pc-col--3-4 { grid-column: span 45; }
.pc-col--1-5 { grid-column: span 12; } .pc-col--2-5 { grid-column: span 24; } .pc-col--3-5 { grid-column: span 36; } .pc-col--4-5 { grid-column: span 48; }
.pc-section .pc-row + .pc-row { margin-top: 48px; }
.pc-h--center { text-align: center; align-self: center; width: 100%; }
.pc-hr-accent { width: 50px; height: 0; border-top: 3px solid var(--primary); margin: 24px 0 40px; }
.pc-hr-accent--center { align-self: center; }
@media (max-width: 767px) {
  .pc-row { grid-template-columns: 1fr; row-gap: 32px; }
  .pc-row > [class*="pc-col--"] { grid-column: auto; padding-inline: 0; }
  .pc-col--empty { display: none; }
}
/* Viertel-Spalten mit Team-Karten auf Tablet zu zweit */
@media (min-width: 768px) and (max-width: 991px) {
  .pc-col--1-4 { grid-column: span 30; }
}

/* Spaltenreihe immer volle Breite (Bricks-Section zentriert sonst schmal) */
.pc-row { width: 100%; }
/* Buttons wie Enfold «large»: rot, weiss, kompakt */
.pc-btn { display: inline-flex; align-self: flex-start; align-items: center; background: var(--primary); color: #fff !important; font: 400 13px/1 Lato, Helvetica, Arial, sans-serif; padding: 15px 30px 13px; border-radius: 3px; text-decoration: none !important; min-height: 44px; transition: background-color .2s; }
.pc-btn:hover, .pc-btn:focus-visible { background: var(--primary-dark); }
/* Hero-Schriftzug: bleibt innerhalb der Tinte (längere Titel umbrechen) */
.pc-hero .pc-hero__claim.pc-hero__claim { white-space: normal; width: max-content; max-width: min(40vw, 620px); line-height: 1.1; text-align: center; }
/* Schwarzer Button (Enfold «black») */
.pc-btn.pc-btn--dark { background: #2c2c2c; border-bottom: 1px solid #000; }
.pc-btn.pc-btn--dark:hover, .pc-btn.pc-btn--dark:focus-visible { background: #000; }

/* Alles, was direkt in einem Abschnitt steht, auf Inhaltsbreite (auch Überschriften ohne Zeile) */
.pc-section > * { width: 100%; max-width: var(--pc-content); margin-inline: auto; }
/* Galerie direkt im Spaltenraster immer über die ganze Zeile (Importfall Enfold-Masonry) */
.pc-row > .pc-gallery { grid-column: 1 / -1; min-width: 0; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
/* Slider wie Enfold-Slideshow (Partners in Perfection): Format 1500×630, Pfeile/Punkte erscheinen beim Darüberfahren */
.pc-slider .image { aspect-ratio: 1500 / 630; height: auto !important; background-size: cover; background-position: center; }
.pc-slider .bricks-swiper-button-prev, .pc-slider .bricks-swiper-button-next { width: 35px; height: 100px; margin: 0; top: 50%; transform: translateY(-50%); background: rgb(0 0 0 / 0.3); color: white; font-size: 25px; border-radius: 0; opacity: 0; transition: opacity 0.3s ease; }
.pc-slider .bricks-swiper-button-prev { left: 0; } .pc-slider .bricks-swiper-button-next { right: 0; }
.pc-slider .swiper-pagination-bullet { width: 14px; height: 14px; background: white; opacity: 0.5; transition: opacity 0.3s ease; }
.pc-slider .swiper-pagination-bullet-active { opacity: 1; }
.pc-slider .swiper-pagination { opacity: 0; transition: opacity 0.3s ease; }
.pc-slider:hover .bricks-swiper-button-prev, .pc-slider:hover .bricks-swiper-button-next, .pc-slider:hover .swiper-pagination,
.pc-slider:focus-within .bricks-swiper-button-prev, .pc-slider:focus-within .bricks-swiper-button-next, .pc-slider:focus-within .swiper-pagination { opacity: 1; }
@media (hover: none) { .pc-slider .bricks-swiper-button-prev, .pc-slider .bricks-swiper-button-next, .pc-slider .swiper-pagination { opacity: 1; } }
.pc-slider { position: relative; }
.pc-slider .swiper-pagination { position: absolute; left: 0; right: 0; bottom: 9px; transform: none; display: flex; justify-content: center; gap: 2px; }
.pc-slider .swiper-pagination .swiper-pagination-bullet { margin: 0; }
