/* Druckausgabe. Die Fusszeile (@page-Margin-Box mit Datum) setzt js/include.js. */
@page { size: A4; margin: 20mm 15mm; }

/* Graustufen: Text schwarz, Flaechen und Hintergruende weiss */
/* :not(#p) hebt die Spezifitaet ueber Bootstrap-Utilities (.text-white, .text-primary, .text-center, .bg-*) */
*:not(#p), *:not(#p)::before, *:not(#p)::after { color: #000 !important; opacity: 1; -webkit-text-fill-color: #000; text-align: left !important; background: none !important; box-shadow: none !important; }
body { animation: none; background: #fff; font-size: 10pt; }
h1, .h1-heading, .hero-heading { font-size: 20pt; line-height: 1.25; }
h2, .h2-heading, h3, .h3-heading { font-size: 16pt; line-height: 1.25; }
h4, .h4-heading { font-size: 14pt; line-height: 1.25; }
h5, .h5-heading, h6 { font-size: 12pt; line-height: 1.25; }
p { margin-bottom: 4pt; }

/* Seitenumbrueche */
h1, h2, h3, h4, h5, h6 { page-break-after: avoid; break-after: avoid; }
p, blockquote, img, .check-item, .team-member, article:has(> .thumb-zoom) { page-break-inside: avoid; break-inside: avoid; }
img, video, canvas { max-width: 100%; height: auto; }

/* ausblenden */
.site-header, footer, .btn, .lightbox, .carousel-indicators, .split-image, .icon, .icon-big, .quote-mark, .accordion-button,
.bg-gradient-blue, .navbar, .ui-to-top, .skip-link, .thumb-zoom .caption, .team-tabs { display: none !important; }
.link-ext::after { content: " (" attr(href) ")"; font-family: inherit; font-size: 8pt; }
a.link-more, a.link-back { display: none; }

/* Abstaende und Layout */
.py-section, .py-4, .py-5, .section-gap, section, .split-body { padding-block: 4pt !important; }
.hero { min-height: 0; }
.hero-overlay::before { display: none; }
.container, .container-xxl { max-width: none; width: 100%; padding: 0; }
.row > * { width: 100%; flex: 0 0 100%; max-width: 100%; padding-inline: 0; }
.row { margin-inline: 0; }

/* Alles linksbuendig: keine Zentrierung ueber Auto-Margins, Flex oder Max-Breiten */
.mx-auto { margin-inline: 0 !important; }
.blurb-center, .measure-sm, .measure-md, .measure-lg { max-width: none; }
.justify-content-center, .justify-content-sm-center, .justify-content-lg-center, .align-items-center { justify-content: flex-start !important; align-items: flex-start !important; }
.split, .bg-body-tertiary, .bg-blue-tint, .box-blue, .box-gray { padding: 0; }

/* Projektuebersicht: Karten zweispaltig, linksbuendig */
.row > :has(> .card-project), .row > :has(> article > .thumb-zoom) { flex: 0 0 50%; max-width: 50%; padding-right: 12pt; }
.card-project { max-width: none; margin-inline: 0; page-break-inside: avoid; break-inside: avoid; }

/* Accordion vollstaendig aufgeklappt */
.accordion-collapse.collapse:not(.show) { display: block; }

/* Team: alle Personen untereinander statt nur des gewaehlten Tabs */
.tab-content > .tab-pane { display: block !important; opacity: 1 !important; }
.team-tabs + .tab-content { padding: 0; border-top: 0; }
.tab-content > .tab-pane { padding-block: 14pt; }
.tab-content > .tab-pane:not(:last-child) { break-after: page; page-break-after: always; }
.team-member { border: 0; padding-bottom: 0; margin-bottom: 10pt; }
.team-member img { display: block; width: 35mm; max-width: none; margin-bottom: 6pt; }
.team-member br { display: none; }

/* Projektseiten: Info-Spalte (aside) ueber dem Hauptinhalt */
.order-1 { order: 1; }
.order-2 { order: 2; }

/* Listenmarker */
.list-marked > li::before { content: "\2013"; top: 0; width: auto; height: auto; background: none; transform: none; }
.list-marked { margin-top: 2pt; }

.img-fluid { max-width: 50%; }
.thumb-zoom img, .card-project img { max-width: 100%; }

/* Zitat-Karussell: alle Zitate untereinander */
.carousel-inner { display: block; }
.carousel-item { display: block; position: static; transform: none; visibility: visible !important; margin-bottom: 8pt; }

/* Partner-Logos: ohne Animation, ohne Duplikate */
.logo-track { animation: none; transform: none; width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 16pt; }
.logo-item { flex: 1 1 0; min-width: 0; padding: 0; justify-content: flex-start; }
.logo-item img { width: 100%; max-width: 30mm; }
.logo-item[aria-hidden] { display: none; }
