/* =========================================================
   PixelHouse GmbH – Stylesheet
   ========================================================= */

/* Lokale Variable Fonts (WOFF2) */
@font-face {
  font-family: "Inter";
  src: url("../font/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../font/JetBrainsMono-Variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ph-ink: #14262b;
  --ph-ink-soft: #21393f;
  --ph-bg: #ffffff;
  --ph-bg-alt: #f0f7f8;
  --ph-text: #2f454b;
  --ph-muted: var(--ph-text);
  --ph-line: #dce8ea;
  --ph-brand: #c8181a;
  --ph-brand-2: #d0262a;
  --ph-accent: #6bc2cb;
  --ph-accent-2: #2f8e9a;
  --ph-radius: 18px;
  --ph-radius-sm: 12px;
  --ph-shadow: 0 14px 40px -18px rgba(20, 38, 43, 0.25);
  --ph-shadow-sm: 0 8px 24px -16px rgba(20, 38, 43, 0.2);
  --ph-max: 1400px;
  --header-h: 77px;
  --ph-col-narrow: calc((min(100vw, var(--ph-max)) - 48px) * 0.382);
  --ph-col-wide: calc((min(100vw, var(--ph-max)) - 48px) * 0.618);
  --ph-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ph-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--ph-font);
  color: var(--ph-text);
  background: var(--ph-bg);
  font-size: min(1rem, calc(var(--lead-size) + var(--lead-boost)));
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
main :is(p, li, span) a:not(.btn):not(.more) { color: inherit; text-decoration: underline; transition: color .2s; }
main :is(p, li, span) a:not(.btn):not(.more):hover { color: var(--ph-accent-2); }

h1, h2, h3, h4 { color: var(--ph-ink); line-height: 1.15; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.02em; }
:root { --h1-size: clamp(2rem, 4.4vw, 3.2rem); --lead-size: calc(0.49rem + 0.19 * var(--h1-size)); --lead-boost: 1px; --h-scale: 1.06; }
/* Mobil und Tablet: Fliesstext und Überschriften etwas grösser, Desktop unverändert */
@media (min-width: 981px) { :root { --lead-boost: 0px; --h-scale: 1; } }
h1 { font-size: calc(var(--h1-size) * var(--h-scale)); }
h2 { font-size: calc(clamp(1.5rem, 2.6vw, 2.2rem) * var(--h-scale)); }
h3 { font-size: calc(1.15rem * var(--h-scale)); }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--ph-max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82em; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ph-brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--ph-brand); border-radius: 2px; }

/* Mobile-first: Basis = bis 720px (Hamburger-Menü), ab 721px Inline-Navigation, ab 981px Desktop-Layout */
/* Feste Header-Höhe (inkl. 1px Rahmen): 77px mobil, 92px ab 721px */
/* backdrop-filter würde position:fixed der Kinder an den Header binden (nur ab 721px aktiv) */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--ph-line); }
.site-header::after { content: ""; position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(20,38,43,0.45); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 1; }
.nav-open.site-header::after { opacity: 1; visibility: visible; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 100%; padding-top: 0; padding-bottom: 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand .logo { width: 220px; display: block; }
.brand .logo img { display: block; width: 100%; height: auto; }
.brand .logo span { font-size: 1rem; line-height: 1; }
.site-header .brand .logo { width: 184px; }
.brand small { display: block; font-size: 0.7rem; font-weight: 600; color: var(--ph-muted); letter-spacing: 0.02em; }

.nav { display: flex; position: fixed; top: 0; bottom: 0; right: 0; width: 300px; max-width: 86vw; background: #fff; z-index: 2; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; flex-direction: column; align-items: stretch; padding: calc(var(--header-h) + 12px) 14px 28px; gap: 4px; border-left: 1px solid var(--ph-line); box-shadow: -12px 0 40px -20px rgba(20,38,43,0.5); overflow-y: auto; touch-action: pan-y; }
.nav a { padding: 10px 16px; border-radius: 999px; font-size: 0.95em; font-weight: 700; color: var(--ph-ink); transition: background .2s, color .2s; }
.nav a:hover { background: var(--ph-bg-alt); color: var(--ph-ink); }
.nav a.active { background: var(--ph-brand); color: #fff; }
.nav .nav-logo, .nav .nav-logo:hover, .nav .nav-logo.active { display: block; position: absolute; top: calc(var(--header-h) / 2); left: 16px; transform: translateY(-50%); padding: 0; background: none; border-radius: 0; }
.nav .nav-logo img { width: 160px; height: auto; }
.nav-open .nav { transform: translateX(0); visibility: visible; }
.nav-item { position: relative; }
.nav-item > a { display: block; }
.nav-sub { display: flex; flex-direction: column; gap: 2px; position: static; min-width: 0; padding: 0; margin: 2px 0 8px 18px; opacity: 1; visibility: visible; }
.nav-sub a { padding: 7px 14px; border-radius: 10px; font-size: 0.85em; font-weight: 500; color: var(--ph-ink-soft); }
.nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item:has(:focus-visible) .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }

.btn { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.85em 1.5em; border-radius: 999px; font-weight: 700; font-size: 0.95em; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn-primary { background: var(--ph-ink); color: #fff; box-shadow: var(--ph-shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--ph-shadow); }
.btn-brand { background: linear-gradient(120deg, var(--ph-brand), var(--ph-brand-2)); color: #fff; box-shadow: 0 12px 30px -14px rgba(200,24,26,0.6); }
.btn-brand:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ph-ink); border-color: var(--ph-line); }
.btn-ghost:hover { background: var(--ph-bg-alt); }

.nav-toggle { display: inline-flex; position: relative; z-index: 3; background: var(--ph-brand); border: 0; border-radius: 50%; width: 48px; height: 48px; cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 10px 22px -12px rgba(200,24,26,0.7); transition: background .2s, transform .15s; }
.nav-toggle:hover { background: #a81214; }
.nav-toggle:active { transform: scale(0.94); }
.nav-toggle:focus-visible { outline: 3px solid var(--ph-accent); outline-offset: 3px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: #fff; position: relative; border-radius: 2px; transition: transform .25s, top .25s, width .25s, background .2s; }
.nav-toggle span::before { position: absolute; top: -6px; right: 0; }
.nav-toggle span::after { position: absolute; top: 6px; right: 0; width: 13px; }
.nav-open .nav-toggle { background: var(--ph-ink); box-shadow: none; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; width: 20px; transform: rotate(-45deg); }

@media (min-width: 721px) {
  :root { --header-h: 92px; }
  .site-header { background: rgba(255,255,255,0.82); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); }
  .site-header::after { display: none; }
  .site-header .brand .logo { width: 240px; }
  .nav { position: static; width: auto; max-width: none; background: none; z-index: auto; transform: none; visibility: visible; transition: none; flex-direction: row; align-items: center; padding: 0; border-left: 0; box-shadow: none; overflow-y: visible; touch-action: auto; }
  .nav a { padding: 0.65em 1em; font-size: 0.9em; font-weight: 600; color: var(--ph-ink-soft); }
  .nav .nav-logo, .nav .nav-logo:hover, .nav .nav-logo.active { display: none; }
  .nav-item.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
  .nav-sub { position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; margin: 6px 0 0; background: #fff; border: 1px solid var(--ph-line); border-radius: 18px; box-shadow: 0 18px 40px -20px rgba(20,38,43,0.45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
  .nav-sub a { padding: 0.65em 1em; font-size: 0.85em; font-weight: 600; white-space: nowrap; }
  .nav-toggle { display: none; }
}

main { position: relative; isolation: isolate; --ph-glow-h: 1150px; }
main::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; left: 0; height: var(--ph-glow-h); background: radial-gradient(60% 50% at 85% 10%, rgba(107,194,203,0.28), transparent 60%); pointer-events: none; }
@media (min-width: 701px) { main { --ph-glow-h: 1020px; } }
@media (min-width: 1101px) { main { --ph-glow-h: 920px; } }
.hero { position: relative; padding: clamp(14px,1.8vw,22px) 0 clamp(40px,6vw,80px); overflow: hidden; }
.hero .wrap { position: relative; }
.hero h1 { margin-bottom: 18px; }
.hero h1 span:first-child { font-size: 88%; }
.hero h1 span:last-child { font-size: 100%; }
.hero h1 .grad { color: var(--ph-brand); text-shadow: 0.04em 0.04em 0 var(--ph-accent); }
.hero-body { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; margin-top: 8px; }
@media (min-width: 721px) { .hero-body { grid-template-columns: minmax(0, 61.8%); } }
@media (min-width: 981px) { .hero-body { grid-template-columns: 38.2% minmax(0, 1fr); } }
.hero p.lead { font-size: calc(var(--lead-size) + var(--lead-boost)); color: var(--ph-muted); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-photo { position: relative; isolation: isolate; align-self: start; width: 100%; }
/* Desktop: Restfläche (38,2 %) im goldenen Schnitt verteilen – links 61,8 % davon (23,6 %), oben 9 % */
@media (min-width: 981px) {
  .hero-photo { width: 61.8%; justify-self: start; margin-top: 9%; margin-left: 23.6%; }
  .hero-photo::before { content: ""; position: absolute; z-index: -1; top: 28px; right: -28px; bottom: -28px; left: 28px; border-radius: 28px; background: rgba(107,194,203,0.2); }
}
.hero-photo img { width: 100%; height: auto; display: block; border-radius: 24px; box-shadow: var(--ph-shadow); }

/* Fader: Bilder liegen übereinander, das aktive blendet ein (Steuerung per assets/js/main.js) */
.fader { position: relative; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; box-shadow: var(--ph-shadow); touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.fader-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.fader-slide.is-active { opacity: 1; z-index: 1; }
.hero-photo .fader img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.fader-nav { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.fader-nav[hidden] { display: none; }
.fader:focus-within .fader-nav, .fader.is-touched .fader-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) { .fader:hover .fader-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } }
.fader-btn { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-left: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,0.7); color: var(--ph-ink); cursor: pointer; opacity: 0.8; transition: opacity .2s ease, background-color .2s ease; }
.fader-btn:hover, .fader-btn:focus-visible { opacity: 1; background: rgba(255,255,255,0.95); }
.fader-btn:focus-visible { outline-offset: 2px; }
@media (pointer: coarse) { .fader-btn { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .fader-slide, .fader-btn, .fader-nav { transition: none; } }

section { padding: clamp(56px,7vw,96px) 0; }
.section-alt { background: var(--ph-bg-alt); }
.section-ink { background: var(--ph-ink); color: #fff; }
.section-ink h2, .section-ink .eyebrow { color: #fff; }
.section-ink .eyebrow::before { background: var(--ph-accent); }
.section-ink .muted { color: rgba(255,255,255,0.7); }
.section-head { margin-bottom: 40px; }
.section-head p { color: var(--ph-muted); }
/* Fliesstext-Spalten im goldenen Schnitt: Tablet = grösserer Teil (61,8 % der Containerbreite), Desktop = kleinerer Teil (38,2 %), Mobil volle Breite */
@media (min-width: 721px) {
  .section-head p, .page-hero p, .split p, .cta-band p { max-width: var(--ph-col-wide); }
}
@media (min-width: 981px) {
  .section-head p, .page-hero p, .split p, .cta-band p { max-width: var(--ph-col-narrow); }
}
.section-ink .section-head p { color: rgba(255,255,255,0.72); }

.grid { display: grid; gap: 22px; }
.grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr; }
.grid-fit { align-items: start; }
.grid-services { align-items: stretch; }
.grid-services > .card { display: flex; flex-direction: column; }
@media (min-width: 721px) {
  .grid-3, .grid-4, .grid-auto { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 981px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .grid-services { grid-template-columns: repeat(6, 1fr); }
  .grid-services > .card { grid-column: span 2; }
}
.grid-services .card .arrow-list { margin-bottom: 16px; }
.grid-services .card a.more { margin-top: auto; align-self: flex-start; }

.card { background: #fff; border: 1px solid var(--ph-line); border-radius: var(--ph-radius); padding: 1.75em; transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-4px); box-shadow: var(--ph-shadow); border-color: transparent; }
.card .ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--ph-brand), var(--ph-brand-2)); color: #fff; font-size: 1.35em; margin-bottom: 18px; box-shadow: 0 10px 22px -12px rgba(200,24,26,0.6); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ph-muted); margin-bottom: 0; font-size: 0.94em; }
.card .arrow-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--ph-muted); font-size: 0.94em; }
.card .arrow-list li { display: flex; gap: 10px; align-items: flex-start; }
.card .arrow-list li::before { content: ""; flex: 0 0 11px; height: 13px; margin-top: 0.45em; background: var(--ph-accent-2); clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%); }
.card a.more { display: inline-flex; margin-top: 16px; font-weight: 700; color: var(--ph-brand); font-size: 0.88em; }
.card a.more::after { content: "→"; margin-left: 6px; transition: transform .2s; }
.card a.more:hover::after { transform: translateX(4px); }
.card.accent .ico { background: linear-gradient(135deg, var(--ph-accent), var(--ph-accent-2)); box-shadow: 0 10px 22px -12px rgba(107,194,203,0.8); }
.card.ink .ico { background: linear-gradient(135deg, var(--ph-ink), var(--ph-ink-soft)); box-shadow: none; }
.card .ico.ico-pic, .card.accent .ico.ico-pic, .card.ink .ico.ico-pic { width: 64px; height: 64px; border-radius: 0; background: none; box-shadow: none; }
.card .ico.ico-pic img { display: block; width: 100%; height: 100%; }
.card-teaser { display: flex; flex-direction: column; }
.card-teaser .card-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.card-teaser .card-head .ico { margin-bottom: 0; flex: 0 0 64px; }
.card-teaser .card-head h3 { margin: 0; }
.card-teaser p { margin-bottom: 16px; }
.card-teaser a.more { margin-top: auto; align-self: flex-start; }

.steps { display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: step; }
@media (min-width: 721px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 981px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.6em; border-radius: var(--ph-radius); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--ph-mono); font-size: 0.85em; font-weight: 700; color: var(--ph-accent); margin-bottom: 12px; display: block; }
.step h3 { color: #fff; }
.step p { color: rgba(255,255,255,0.7); margin: 0; font-size: 0.92em; }

.client-grid { list-style: none; margin: 0; padding: 0; columns: 260px; column-gap: 14px; }
.client-item { position: relative; display: flex; width: 100%; margin: 0 0 14px; break-inside: avoid; box-sizing: border-box; align-items: flex-start; gap: 14px; padding: 10px 13px; border: 1px solid var(--ph-line); border-radius: 12px; background: var(--ph-bg-alt); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.client-item::before { content: ""; flex: 0 0 10px; width: 10px; height: 10px; margin-top: 0.3em; border-radius: 2px; background: var(--ph-brand); box-shadow: 5px 5px 0 -1px var(--ph-accent); transition: transform .2s ease, box-shadow .2s ease; }
.client-item:hover { border-color: var(--ph-accent); background: #fff; }
.client-item:hover::before { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 -1px var(--ph-accent-2); }

.cta-band { background: linear-gradient(120deg, var(--ph-brand), var(--ph-brand-2)); border-radius: 28px; padding: clamp(36px,6vw,64px); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; box-shadow: 0 24px 60px -28px rgba(200,24,26,0.55); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.92); margin: 0; }
.cta-band .btn-ghost { background: #fff; color: var(--ph-ink); border-color: #fff; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 12px; justify-self: stretch; }
.cta-band .btn { justify-content: center; white-space: normal; text-align: center; }
.cta-band .btn[href^="tel:"] { align-self: stretch; }
@media (min-width: 721px) {
  .cta-band .cta-actions { flex-direction: row; flex-wrap: wrap; justify-self: start; }
  .cta-band .btn { justify-content: normal; white-space: nowrap; text-align: inherit; }
  .cta-band .btn[href^="tel:"] { align-self: flex-start; }
}
@media (min-width: 981px) {
  .cta-band { grid-template-columns: 1.4fr 0.6fr; }
  .cta-band .cta-actions { flex-direction: column; flex-wrap: nowrap; justify-self: end; }
}

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 721px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info { display: grid; gap: 18px; }
.kv { display: flex; gap: 14px; align-items: flex-start; }
.kv .ico { width: 46px; height: 46px; border-radius: 12px; flex: 0 0 46px; background: var(--ph-bg-alt); border: 1px solid var(--ph-line); display: grid; place-items: center; color: var(--ph-brand); }
.card .ico svg { width: 26px; height: 26px; }
.kv .ico svg { width: 22px; height: 22px; }
.kv b { display: block; }
.kv span { color: var(--ph-muted); font-size: 0.92em; }

.contact-photo { border-radius: var(--ph-radius); overflow: hidden; min-height: 320px; box-shadow: var(--ph-shadow); }
.contact-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-full iframe { display: block; width: 100%; height: 400px; border: 0; }

.page-hero { padding: clamp(14px,1.8vw,22px) 0 clamp(30px,4vw,50px); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--ph-muted); }
.breadcrumb { visibility: hidden; pointer-events: none; user-select: none; font-size: 0.75em; color: var(--ph-muted); margin-bottom: clamp(28px,4vw,44px); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4em; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4em; }
.breadcrumb a:hover { color: var(--ph-brand); }

.split { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.split.media-first .split-media { order: -1; }
@media (min-width: 981px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.golden { grid-template-columns: minmax(0, 1.618fr) minmax(0, 1fr); }
  .split.golden.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.618fr); }
  .split.media-first .split-media { order: 0; }
  .split.golden.reverse .split-media { order: 0; }
  .split.reverse .split-media { order: 2; }
}
.split-media { border-radius: var(--ph-radius); aspect-ratio: 5/4; background: linear-gradient(135deg, var(--ph-ink), var(--ph-ink-soft)); position: relative; overflow: hidden; box-shadow: var(--ph-shadow); }
.split-media.pic { aspect-ratio: var(--w, 498) / var(--h, 356); max-width: calc(var(--w, 498) * 1px); width: 100%; justify-self: center; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.illu { background: linear-gradient(160deg, var(--ph-bg-alt), #fff); max-width: 340px; width: 100%; justify-self: center; }
.split-media.illu img { object-fit: contain; object-position: center bottom; }
.split-media.illu.photo { aspect-ratio: 1 / 1; }
.split-media.illu.photo img { object-fit: cover; object-position: center top; }

.feature-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before { content: "✓"; flex: 0 0 24px; height: 24px; border-radius: 8px; background: rgba(107,194,203,0.25); color: var(--ph-accent-2); display: grid; place-items: center; font-weight: 900; font-size: 0.85em; margin-top: 2px; }
.feature-list li b { display: block; }
.feature-list li span { color: var(--ph-muted); font-size: 0.9em; }

.faq { background: #fff; border: 1px solid var(--ph-line); border-radius: var(--ph-radius); box-shadow: var(--ph-shadow-sm); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--ph-line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; color: var(--ph-ink); padding: 1.25em 1.5em; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3em; color: var(--ph-brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { padding: 0 1.5em 1.4em; color: var(--ph-muted); }

.site-footer { background: var(--ph-ink); color: rgba(255,255,255,0.78); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 721px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 981px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 0.9em; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { display: block; padding: 5px 0; font-size: 0.92em; }
.site-footer a:hover { color: var(--ph-accent); }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92em; line-height: 1.5; padding: 5px 0; }
.footer-list li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.5em; background: var(--ph-accent); }
.footer-list a { padding: 0; font-size: inherit; line-height: inherit; }
.footer-contact li::before { content: none; }
.footer-contact .fi { flex: none; width: 1.1em; height: 1.1em; margin-top: 0.2em; fill: none; stroke: var(--ph-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand .logo { width: 130px; }
.site-footer .brand small { color: rgba(255,255,255,0.6); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85em; }
.footer-bottom .last-updated { font-size: 0.9em; align-self: center; font-style: italic; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.jump-scrolling .reveal { transition: none; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
a.card { display: block; }
a.card:focus-visible { outline: 3px solid var(--ph-brand); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 1000; padding: 0.6em 1.1em; border-radius: 999px; background: var(--ph-ink); color: #fff; font-weight: 700; font-size: 0.92em; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ph-ink); outline-offset: 3px; }
.site-footer a:focus-visible, .cta-band a:focus-visible, .section-ink a:focus-visible { outline-color: #fff; }
.skip-link:focus-visible { top: 12px; outline-color: #fff; }
.faq summary:focus-visible { outline-offset: -3px; }
/* Hinweis «Zustimmung Datenschutzerklärung» */
.consent-notice { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 900; max-width: 720px; margin-inline: auto; background: #fff; border: 1px solid var(--ph-line); border-radius: var(--ph-radius); box-shadow: var(--ph-shadow); }
.consent-notice-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; }
.consent-notice strong { display: block; color: var(--ph-ink); }
.consent-notice p { margin: 4px 0 0; font-size: 0.95em; }
.consent-notice a { text-decoration: underline; }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
/* Sections haben eigenes Padding: bündig unter dem Header ausrichten */
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }
/* Ab Tablet: Textspalte = grösserer Teil des goldenen Schnitts (61,8 %), linksbündig im Container */
@media (min-width: 721px) {
  .legal > * { max-width: 61.8%; }
}
.legal h2 { font-size: calc(1.25rem * var(--h-scale)); margin: 36px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: calc(1rem * var(--h-scale)); margin: 22px 0 8px; }
.legal p { margin: 0 0 12px; }
.legal-address { display: block; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 0; font-style: normal; }
.legal-address strong { display: block; margin-bottom: 8px; font-size: 1em; color: var(--ph-ink); }
.legal-address ul { list-style: none; margin: 0; padding: 0; }
.legal-address li { display: flex; align-items: flex-start; gap: 12px; padding: 5px 0; line-height: 1.5; }
.legal-address .fi { flex: none; width: 1.15em; height: 1.15em; margin-top: 0.2em; fill: none; stroke: var(--ph-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Fallbacks für ältere Browser (vor 2021): Flex-gap und aspect-ratio werden dort nicht unterstützt.
   Die Abfrage auf inset (Chrome 87, Firefox 66, Safari 14.1) deckt die Browser ohne Flex-gap ab; gap wird dabei auf 0 gesetzt und durch Margins ersetzt. */
@supports not (inset: 0) {
  .eyebrow, .site-header .wrap, .brand, .nav, .nav-sub, .hero-cta, .card .arrow-list li, .card-teaser .card-head, .client-item, .cta-band .cta-actions, .kv, .breadcrumb ol, .feature-list li, .faq summary, .footer-list li, .footer-bottom, .legal-address li { gap: 0; }
  .eyebrow::before { margin-right: 8px; }
  .site-header .wrap > * + * { margin-left: 18px; }
  .brand > * + * { margin-left: 12px; }
  .nav > * + * { margin-top: 4px; }
  .nav > .nav-logo + * { margin-top: 0; }
  .nav-sub > * + * { margin-top: 2px; }
  .hero-cta { margin-bottom: -14px; }
  .hero-cta > * { margin: 0 14px 14px 0; }
  .card .arrow-list li::before { margin-right: 10px; }
  .card-teaser .card-head > * + * { margin-left: 16px; }
  .client-item::before { margin-right: 14px; }
  .cta-band .cta-actions > * + * { margin-top: 12px; }
  .kv > * + * { margin-left: 14px; }
  .breadcrumb ol { margin-bottom: -0.4em; }
  .breadcrumb li { margin: 0 0.4em 0.4em 0; }
  .feature-list li::before { margin-right: 12px; }
  .faq summary::after { margin-left: 12px; }
  .footer-list li::before, .footer-contact .fi { margin-right: 10px; }
  .footer-bottom > * + * { margin-top: 16px; }
  .legal-address .fi { margin-right: 12px; }
  @media (min-width: 721px) {
    .nav > * + * { margin-top: 0; margin-left: 4px; }
    .nav > .nav-logo + * { margin-left: 0; }
    .footer-bottom > * + * { margin-top: 0; margin-left: 16px; }
    .cta-band .cta-actions { margin-bottom: -12px; }
    .cta-band .cta-actions > * { margin: 0 12px 12px 0; }
  }
  @media (min-width: 981px) {
    .cta-band .cta-actions { margin-bottom: 0; }
    .cta-band .cta-actions > * { margin: 0; }
    .cta-band .cta-actions > * + * { margin-top: 12px; }
  }
}
/* aspect-ratio (Chrome 88, Firefox 89, Safari 15): Höhe über Padding-Verhältnis */
@supports not (aspect-ratio: 1) {
  .split-media::before { content: ""; display: block; padding-top: 80%; }
  .split-media.pic::before { padding-top: calc(var(--h, 356) / var(--w, 498) * 100%); }
  .split-media.illu.photo::before { padding-top: 100%; }
  .split-media img { position: absolute; top: 0; left: 0; }
  .fader::before { content: ""; display: block; padding-top: 66.667%; }
}
