/* =========================================================
   Ragettli Baumedia: Designsystem (Version 2, hell)
   Weiss und Schwarz tragen die Seite, die Bilder sprechen. Mint aus der
   Ragettli-Identität ist der einzige Akzent und kommt sparsam vor.
   Alle Farben, Schriften und Abstände stehen hier oben als Variablen.
   ========================================================= */

@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-var.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0e0f11;        /* Schrift, dunkle Knöpfe (Ragettli-Schwarz) */
  --ink-2: #2b2f31;
  --muted: #5d6462;      /* Nebentext, 6:1 auf Weiss */
  --line: #e2e6e4;
  --line-strong: #c9d1ce;
  --paper: #ffffff;
  --tint: #f3f6f5;       /* ruhige Flächen */
  --mint: #93b7ae;       /* Ragettli-Mint, leicht gedämpft: Flächen */
  --mint-soft: #e5efec;  /* Kacheln, Kontaktband */
  --mint-mark: #6fa396;  /* Dreieck im Schriftzug */
  --mint-deep: #3d7266;  /* Akzent als Schrift, 5.5:1 auf Weiss */
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.015em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
address { font-style: normal; }
sup { font-size: .5em; vertical-align: super; line-height: 0; }
:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(920px + 2 * var(--gutter)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .8em 1.2em; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Platzhalter: nur im Entwurf. Vor dem Go-live darf keiner übrig sein (grep "todo"). */
.todo { background: rgba(255, 196, 0, .22); outline: 1px dashed #d9a800; outline-offset: 1px; padding: 0 .25em;
  color: inherit; font-size: .9em; font-weight: 400; letter-spacing: 0; text-transform: none; }

/* ---------- Typo-Bausteine ---------- */
.label { display: block; margin-bottom: 10px; color: var(--mint-deep); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.3; }
.lead { margin-top: 18px; max-width: 46ch; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); font-weight: 300; line-height: 1.5; }
.prose p { max-width: 60ch; font-size: 19px; font-weight: 300; line-height: 1.6; }
.prose p + p { margin-top: 1em; }
.prose h2 { margin: 1.8em 0 .6em; font-size: clamp(26px, 2.6vw, 34px); }
.prose h3 { margin: 1.6em 0 .4em; font-size: 20px; }
.prose a { color: var(--mint-deep); }
.section-lead { max-width: 62ch; margin: -8px 0 32px; color: var(--muted); font-size: 19px; font-weight: 300; }
.note { margin-top: 28px; color: var(--muted); font-size: 15px; }
.ticks { list-style: none; }
.ticks li { position: relative; padding: 4px 0 4px 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .95em; width: 12px; height: 1.5px; background: var(--mint-deep); }

/* ---------- Knöpfe und Links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px; padding: 12px 22px;
  font: 500 15.5px/1.25 var(--font); text-align: center; text-decoration: none; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn .i-arrow { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; text-decoration: none; color: var(--ink); }
.link-arrow .i-arrow { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.link-arrow:hover { color: var(--mint-deep); }
.link-arrow:hover .i-arrow { transform: translateX(4px); }

/* ---------- Kopf ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(14, 15, 17, .05); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.logo { display: block; width: auto; height: 22px; }
.logo-letters { fill: currentColor; }
.logo-mark { fill: var(--mint-mark); }
.brand__suffix { padding-left: 14px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 12px;
  font-weight: 500; letter-spacing: .24em; line-height: 22px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 36px); }
.nav a:not(.btn) { position: relative; padding: 6px 0; color: var(--ink-2); font-size: 16px; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--mint-deep); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--mint); }
.nav__cta { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.nav-toggle { display: none; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; color: var(--ink); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 1.5px; background: currentColor;
  position: relative; margin: auto; transition: transform .3s var(--ease), background .3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; } .nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Einstieg: Bildraster mit Kernaussage ----------
   Luft an den Raendern und unten (Gian, 2026-10-09: «zu dicht»): die Kacheln
   stehen nicht mehr am Fensterrand, und unter dem zweiten Raster folgt ein Absatz. */
.hero { padding-block: clamp(18px, 2.4vw, 36px) clamp(28px, 3.5vw, 56px); }
/* Die Kacheln laufen nicht mehr bis an den Fensterrand: dieselbe Breite wie der Text darunter,
   dazu groessere Fugen (Gian: «kleiner, mehr Platz zum Atmen»). */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px);
  width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.tile { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile:hover img { transform: scale(1.045); }
.tile video, .wide__loop, .news__loop, .row__loop, .image-hero__loop { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.tile video.is-playing, .is-playing.wide__loop, .is-playing.news__loop, .is-playing.row__loop, .is-playing.image-hero__loop { opacity: 1; }
.wide--loop, .news__img, .row__img, .image-hero__media, .ref__img { position: relative; }
/* Der Punkt sagt «hier laeuft beim Drueberfahren ein Clip». Dunkel mit hellem Saum statt weiss mit dunklem
   (Gian: die weissen waren zu hell), dazu ein langsames Atmen, das man eher spuert als sieht. Die Animation
   laesst die Deckkraft in Ruhe, sonst wuerde sie das Ausblenden beim Drueberfahren ueberstimmen. */
.tile[data-loop]::after { content: ""; position: absolute; right: 12px; top: 12px; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(14, 15, 17, .6); box-shadow: 0 0 0 2px rgba(255, 255, 255, .42); opacity: .75;
  transition: opacity .3s; animation: tile-dot 3.4s ease-in-out infinite; }
.tile[data-loop]:hover::after { opacity: 0; }
@keyframes tile-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(255, 255, 255, .42); }
  50% { transform: scale(1.28); box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
}
@media (prefers-reduced-motion: reduce) { .tile[data-loop]::after { animation: none; } }
/* z-index 1: script.js haengt den Hover-Clip NACH der Unterschrift in die Kachel; ohne Stapelordnung lag der
   Clip ueber dem Text, und die Unterschrift war genau dann weg, wenn das Video lief. */
.tile__cap { position: absolute; z-index: 1; inset: auto 0 0 0; padding: 40px 14px 12px; color: #fff; font-size: 13.5px;
  line-height: 1.35; background: linear-gradient(transparent, rgba(14, 15, 17, .78)); opacity: 0;
  transition: opacity .35s var(--ease); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; }
/* Ohne Maus gibt es kein Drueberfahren: dort steht die Unterschrift immer. */
@media (hover: none) { .tile__cap { opacity: 1; } }
.hero__band { padding-block: clamp(40px, 5.5vw, 80px); }
.hero__band h1 { font-size: clamp(34px, 4.8vw, 68px); letter-spacing: -.025em; line-height: 1.04; }
.rotator { margin-top: clamp(10px, 1.2vw, 16px); color: var(--muted); font-size: clamp(22px, 2.6vw, 36px); font-weight: 300; line-height: 1.25; }
.rotator__box { color: var(--mint-deep); font-weight: 400; }
.rotator__word + .rotator__word { display: none; }
.rotator.is-ready .rotator__box { position: relative; display: inline-block; height: 1.25em; vertical-align: bottom;
  overflow: hidden; transition: width .5s var(--ease); }
.rotator.is-ready .rotator__word { display: block; position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0;
  transform: translateY(70%); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.rotator.is-ready .rotator__word.is-active { opacity: 1; transform: none; }
.rotator.is-ready .rotator__word.is-leaving { opacity: 0; transform: translateY(-70%); }

.intro { padding-block: clamp(36px, 5vw, 64px) 0; }
.intro__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px;
  padding-top: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.intro__grid p { max-width: 44ch; font-size: clamp(19px, 1.7vw, 22px); font-weight: 300; line-height: 1.45; }
.intro__grid p strong { font-weight: 500; }
/* Gians Satz unter dem Opener: klein und ruhig, nicht als Claim (Gian, 2026-10-10: «viel kleiner») */
.intro__grid p.intro__note { max-width: 62ch; font-size: 15px; line-height: 1.6; font-weight: 400; color: var(--muted); }
.intro__name { display: block; margin-top: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); }
.proof { margin-top: 26px; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 90ch; }
.proof a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.proof a:hover { color: var(--mint-deep); border-color: var(--mint-deep); }

/* ---------- Abschnitte ---------- */
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.section--flush { padding-top: 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 44px); }

/* ---------- Schieber (Aktuell, Referenzen) ---------- */
.slider { position: relative; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.slider__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.slider__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0;
  color: var(--ink); cursor: pointer; }
.slider__btn svg { width: 22px; height: 22px; }
.slider__btn:hover { color: var(--mint-deep); }
.slider__dots { display: flex; gap: 8px; }
.slider__dot { width: 9px; height: 9px; padding: 0; border: 0; background: var(--line-strong); cursor: pointer; }
.slider__dot.is-active { background: var(--ink); }
/* «Aktuell» viel kleiner und das Gruen blasser (Gian, 2026-10-10): schmaler Schieber, 3:2-Bild, heller Kasten */
.slider { max-width: 880px; margin-inline: auto; }
.news { display: grid; grid-template-columns: 1fr 1fr; }
.news__img img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.news__box { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(22px, 3vw, 36px);
  background: color-mix(in srgb, var(--mint) 42%, white); color: var(--ink); }
.news__box .label { color: var(--ink); opacity: .8; margin: 0; }
.news__box h3 { font-size: clamp(20px, 1.9vw, 25px); }
.news__box p { max-width: 40ch; font-size: 15px; }
.news__box .link-arrow { margin-top: 8px; }
.feature { position: relative; display: block; color: var(--ink); text-decoration: none; }
.feature img { width: 100%; height: clamp(320px, 58vw, 760px); object-fit: cover; }
.feature__cap { position: absolute; left: var(--gutter); bottom: var(--gutter); display: block; max-width: 440px;
  padding: 22px 26px; background: rgba(255, 255, 255, .96); }
.feature__cap h3 { margin-bottom: 6px; font-size: clamp(21px, 2vw, 26px); }
.feature__cap > span:last-child { color: var(--muted); font-size: 15px; }

/* ---------- Angebot (Kacheln) ---------- */
.services { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.package-card { display: block; color: var(--ink); text-decoration: none; }
.package-card__icon { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--ink-2); color: #fff; isolation: isolate; }
.package-card__video, .package-card__img { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover;
  filter: blur(1.5px) saturate(.85); opacity: .75; transition: opacity .5s var(--ease), transform .8s var(--ease); }
.package-card:hover .package-card__video, .package-card:hover .package-card__img { opacity: .95; transform: scale(1.04); filter: blur(0) saturate(.95); }
.package-card__icon::before { content: ""; position: absolute; inset: 0; background: rgba(14, 15, 17, .32); }
.package-card__img { inset: 0; width: 100%; height: 100%; }
.package-card__icon .icon { position: relative; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .35)); }
.icon { width: 46%; height: auto; }
.package-card h3 { margin: 16px 0 8px; font-size: 18px; line-height: 1.25; }
.package-card ul { list-style: none; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Foto-Kachel: vier Zellen, scharf, die beim Drueberfahren versetzt die besten Fotos durchblaettern */
.package-card--grid .package-card__icon { background: var(--paper); }
.package-card--grid .package-card__icon::before { display: none; }
.package-card--grid .icon { display: none; }
.fgrid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px;
  background: var(--paper); }
.fgrid__cell { position: relative; overflow: hidden; background: var(--tint); }
.fgrid__cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease); }
.package-card--grid:hover .fgrid__cell img { transform: scale(1.06); }

/* Telefon: Feed aus drei Hochformat-Clips, der wie beim Wischen nach oben zieht; Daumen und Herz dazu.
   Die Clips laufen gleichzeitig (klein, 540 px), die Bewegung macht nur die Huelle. */
.package-card--phone .package-card__icon { background: var(--mint-soft); }
.package-card--phone .package-card__icon::before { display: none; }
.package-card--phone .icon { display: none; }
.phone { position: relative; display: block; width: 46%; aspect-ratio: 9 / 19; margin: auto; border-radius: 12% / 6%;
  background: var(--ink); padding: 4%; box-shadow: 0 18px 40px rgba(14, 15, 17, .28); }
.phone__screen { position: absolute; inset: 4%; display: block; overflow: hidden; border-radius: 9% / 4.5%; background: #000; }
.phone__feed { position: absolute; inset: 0 0 auto 0; display: block; height: 300%;
  animation: feed-swipe 9s var(--ease) infinite; }
.phone__clip { display: block; width: 100%; height: 33.3333%; object-fit: cover; opacity: 1; position: static; }
.phone__heart { position: absolute; left: 50%; top: 50%; width: 34%; color: #fff; transform: translate(-50%, -50%) scale(0);
  opacity: 0; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .4)); animation: feed-heart 9s var(--ease) infinite; }
.phone__bar { position: absolute; right: 7%; bottom: 10%; display: grid; gap: 14%; width: 11%; }
.phone__bar i { display: block; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.phone__thumb { position: absolute; right: -14%; bottom: 6%; width: 30%; aspect-ratio: 1; border-radius: 50% 50% 45% 45%;
  background: #d9b8a0; box-shadow: inset -6px -4px 10px rgba(0, 0, 0, .12); animation: feed-thumb 9s var(--ease) infinite; }
.phone--big { width: 52%; }
.row__img--phone { background: var(--mint-soft); padding: 28px 8px; }
.row__img--phone .phone { width: 44%; }
@keyframes feed-swipe {
  0%, 24% { transform: translateY(0); }
  33%, 57% { transform: translateY(-33.3333%); }
  66%, 90% { transform: translateY(-66.6667%); }
  100% { transform: translateY(-100%); }
}
@keyframes feed-thumb {
  0%, 20% { transform: translateY(0); }
  26% { transform: translateY(-120%); }
  33%, 53% { transform: translateY(0); }
  59% { transform: translateY(-120%); }
  66%, 86% { transform: translateY(0); }
  92%, 100% { transform: translateY(-120%); }
}
@keyframes feed-heart {
  0%, 12% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  19% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  22%, 45% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  48% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  52% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  55%, 100% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
}

/* Suchergebnis als Zeichnung: Suche tippt sich, drei Treffer erscheinen, der erste als Anzeige */
.package-card--seo .package-card__icon { background: var(--tint); }
.package-card--seo .package-card__icon::before { display: none; }
.package-card--seo .icon { display: none; }
.seo { position: absolute; inset: 12% 10%; display: grid; grid-template-rows: auto 1fr 1fr 1fr; gap: 7%; align-content: start;
  padding: 7% 8%; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(14, 15, 17, .10);
  font-family: var(--font); color: var(--ink); text-align: left; }
.seo__bar { display: block; padding: 6% 8%; border: 1.5px solid var(--line-strong); border-radius: 99px;
  font-size: clamp(9px, .9vw, 12px); line-height: 1.2; white-space: nowrap; overflow: hidden; }
.seo__q { display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; border-right: 1.5px solid var(--ink);
  animation: seo-type 7s steps(19) infinite; }
.seo__res { display: grid; gap: 14%; align-content: center; opacity: 0; animation: seo-in 7s var(--ease) infinite; }
.seo__res:nth-child(3) { animation-delay: .35s; }
.seo__res:nth-child(4) { animation-delay: .7s; }
.seo__res i { display: block; height: 7px; border-radius: 4px; background: var(--line-strong); }
.seo__res i:first-of-type { width: 72%; height: 9px; background: var(--ink-2); }
.seo__res i:last-of-type { width: 92%; }
.seo__res--ad b { display: inline-block; margin-bottom: 2px; padding: 1px 6px; border-radius: 3px; background: var(--mint-deep);
  color: #fff; font-size: 9px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.seo__res--ad i:first-of-type { background: var(--mint-deep); }
.seo__cursor { position: absolute; left: 60%; top: 68%; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--ink); background: #fff; opacity: 0; animation: seo-click 7s var(--ease) infinite; }
.seo--big { position: relative; inset: auto; width: 78%; margin: 0 auto; aspect-ratio: 4 / 3.4; }
.row__img--seo { background: var(--tint); padding: 24px 8px; }
@keyframes seo-type {
  0%, 8% { max-width: 0; }
  36%, 100% { max-width: 100%; }
}
@keyframes seo-in {
  0%, 38% { opacity: 0; transform: translateY(6px); }
  48%, 100% { opacity: 1; transform: none; }
}
@keyframes seo-click {
  0%, 62% { opacity: 0; transform: scale(1); left: 60%; top: 68%; }
  68% { opacity: 1; left: 42%; top: 44%; }
  74% { transform: scale(.7); }
  80%, 100% { opacity: 0; left: 42%; top: 44%; }
}

/* Fuer wen: vier Branchen nebeneinander */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.audience div { padding-top: 18px; border-top: 1.5px solid var(--ink); }
.audience h3 { margin-bottom: 10px; font-size: 20px; }
.audience p { color: var(--muted); font-size: 16px; }

/* Fragen: aufklappbar, ohne Skript */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 36px 18px 0; cursor: pointer; font-size: 19px; font-weight: 500; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq p { padding: 0 0 20px; max-width: 62ch; color: var(--muted); font-size: 17px; }

/* ---------- Stimmen: Karten wie auf ragettli-creation.ch ---------- */
.testis { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.testi { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px;
  padding: clamp(24px, 3vw, 40px); color: #fff; overflow: hidden; isolation: isolate; }
.testi__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.85); }
.testi::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 15, 17, .15) 0%, rgba(14, 15, 17, .78) 60%, rgba(14, 15, 17, .9) 100%); }
.testi blockquote { margin: 0; }
.testi blockquote p { font-size: clamp(20px, 1.9vw, 25px); font-weight: 300; line-height: 1.35; text-wrap: pretty; }
.testi figcaption { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 14px; }
.testi figcaption img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); }
.testi figcaption strong { display: block; font-size: 16px; font-weight: 500; }
.testi figcaption span span.todo { color: var(--ink); }
/* ---------- Stimme (einzeln) ---------- */
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(22px, 2.6vw, 34px); font-weight: 300; line-height: 1.35; letter-spacing: -.01em; }
.quote figcaption { margin-top: 22px; color: var(--muted); font-size: 15px; }
.quote figcaption strong { color: var(--ink); font-weight: 500; }

/* ---------- Bild mit Kasten (Über uns, Kontakt) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__img img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__img--portrait img { aspect-ratio: 4 / 5; object-position: 50% 20%; }
.split--person { grid-template-columns: 300px minmax(0, 1fr); }
.split--person.split--reverse { grid-template-columns: minmax(0, 1fr) 300px; }
.split--person .split__img img { height: 100%; aspect-ratio: auto; }
.split--person .split__box { padding: clamp(28px, 4vw, 56px); }
.split--reverse .split__img { order: 2; }
.split__box h2 { font-size: clamp(28px, 3vw, 40px); }
.split__box > .label { margin-bottom: 0; color: var(--ink); opacity: .75; }
.split__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.split__box { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: clamp(28px, 5vw, 64px);
  background: var(--mint); }
.split__box a { color: var(--ink); text-decoration: none; }
.split__box h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(24px, 2.4vw, 30px); }
.split__box h3 .i-arrow { width: 24px; height: 24px; transition: transform .25s var(--ease); }
.split__box a:hover h3 .i-arrow { transform: translateX(4px); }
.split__box p { margin-top: 6px; max-width: 38ch; }
.split__tel { font-size: 19px; font-weight: 500; }

/* ---------- Kontaktband ---------- */
.cta-band { padding-block: clamp(56px, 7vw, 96px); background: var(--mint-soft); }
.cta-band__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; }
.cta-band h2 { font-size: clamp(28px, 3.2vw, 44px); }
.cta-band p { margin-bottom: 22px; max-width: 42ch; color: var(--ink-2); font-size: 18px; }

/* ---------- Unterseiten: Kopf ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 13.5px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--mint-deep); }
.page-title { padding-block: clamp(48px, 7vw, 96px) clamp(36px, 5vw, 64px); }
.page-title h1, .image-hero h1 { font-size: clamp(34px, 4.6vw, 62px); letter-spacing: -.025em; line-height: 1.05; }
.image-hero__media img { width: 100%; height: clamp(240px, 34vw, 440px); object-fit: cover; }
.image-hero__text { padding-top: clamp(32px, 4.5vw, 60px); }

/* ---------- Fallstudien ---------- */
.case-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.stat__num { font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__txt { color: var(--muted); font-size: 15px; line-height: 1.4; }
.stats__note { margin-top: 22px; color: var(--muted); font-size: 14px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.pair--films { margin-bottom: clamp(28px, 4vw, 48px); }
.pair--films figcaption { text-transform: none; letter-spacing: 0; }
.pair--films .wide__loop { bottom: auto; aspect-ratio: 3 / 2; height: auto; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 10px; }
.gallery img, .pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.film-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.film-cols h3 { margin-bottom: 12px; font-size: 20px; }
.film-cols .ticks { color: var(--ink-2); font-size: 16px; }

.project__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); align-items: start; }
/* Medien auf den Referenzseiten kleiner (Gian, 2026-10-10: «kleiner sieht qualitativ besser aus») */
.project__grid .wide, .project__grid .gallery, .project__grid .pair { max-width: 700px; }
.project__grid .wide img { aspect-ratio: 16 / 9; }
/* Clips noch kleiner als die Fotos (Gian: «alle Videos bei Referenzen kleiner, dadurch steigt die Quali»):
   die Loops sind 960 px breit, bei 520 CSS-px bleiben sie auch auf Retina-Schirmen scharf. */
.project__grid .wide--loop, .pair--films { max-width: 520px; }
.pair--films { margin-inline: 0; }
.gallery--portrait img, .pair--portrait img { aspect-ratio: 2 / 3; }
.project__aside .facts div { grid-template-columns: 90px minmax(0, 1fr); }
.project__aside .note { margin-top: 18px; }
.films { list-style: none; }
.films li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.yt svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; flex: none; }
.yt:hover svg { background: var(--mint-deep); }
.section--tint .films li { border-color: var(--line-strong); }
/* ---------- Leistungen ---------- */
.rows { display: grid; gap: clamp(48px, 6vw, 88px); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.row--flip .row__img { order: 2; }
.row__img { max-width: 480px; justify-self: center; width: 100%; padding: 8px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(14, 15, 17, .10); }
.row__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.row__img .row__loop { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.rows { padding-top: 8px; }
.service__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 20px; background: var(--mint-soft); }
.service__icon .icon { width: 36px; }
.service h2 { margin-bottom: 12px; font-size: clamp(26px, 2.8vw, 36px); }
.service p { margin-bottom: 14px; max-width: 44ch; color: var(--muted); font-size: 18px; }
.plain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(28px, 5vw, 72px); margin-top: clamp(56px, 8vw, 112px); }
.service--plain { padding-top: 28px; border-top: 1px solid var(--line); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.steps li { padding-top: 18px; border-top: 1.5px solid var(--ink); counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; margin-bottom: 14px; color: var(--mint-deep); font-size: 14px; font-weight: 500; letter-spacing: .1em; }
.steps h3 { margin-bottom: 8px; font-size: 22px; }
.steps p { color: var(--muted); }

/* ---------- Referenzen ---------- */
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 56px) 24px; }
.ref-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
.ref-grid--3 .ref h3 { font-size: 20px; }
.ref-grid--3 .ref__img { margin-bottom: 14px; }
.ref { display: block; color: var(--ink); text-decoration: none; }
.ref__img { display: block; overflow: hidden; margin-bottom: 18px; }
.ref__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ref:hover h3 { color: var(--mint-deep); }
.ref h3 { font-size: clamp(22px, 2.2vw, 28px); }
.ref__meta { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.ref--list { align-self: end; padding-top: 22px; border-top: 1px solid var(--line); }
.ref--list h3 { margin-bottom: 12px; }
.ref--list ul { list-style: none; }
.ref--list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.ref--list a { text-decoration: none; }
.ref--list a:hover { color: var(--mint-deep); }
.clients { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.client { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3.5vw, 44px); background: var(--paper);
  color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: border-color .3s; }
.client:hover { border-color: var(--ink); }
.client h2 { font-size: clamp(26px, 2.6vw, 34px); }
.client p { color: var(--muted); max-width: 44ch; }
.client .label { margin: 0; }

/* ---------- Über uns ---------- */
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.team { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.team li { display: flex; align-items: center; gap: 14px; }
.team img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.team strong { display: block; font-weight: 500; }
.team span { font-size: 14.5px; color: var(--muted); line-height: 1.35; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__side img.contact__pic { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* Wolkenmeer mit Gians Satz als Zitat (2026-10-10) statt des Portraits */
.contact__quote { position: relative; margin: 0 0 24px; overflow: hidden; background: var(--ink); }
.contact__quote img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* Zitat mittig auf dem Bild (Gian, 2026-10-10), ein leichter Schleier statt Verlauf von unten */
.contact__quote blockquote { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; margin: 0; padding: 28px; color: #fff; background: rgba(14, 15, 17, .38); }
.contact__quote p { margin: 0; max-width: 30ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.38; font-weight: 400;
  text-shadow: 0 1px 14px rgba(0, 0, 0, .45); }
.contact__quote p::before { content: "«"; }
.contact__quote p::after { content: "»"; }
.contact__quote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13.5px; letter-spacing: .06em;
  text-transform: uppercase; opacity: .82; }
.contact-list { list-style: none; margin-top: 28px; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list .label { margin-bottom: 4px; }
.contact-list a { font-size: 20px; text-decoration: none; }
.form { display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 2px; }
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--mint-deep); outline-offset: 0; border-color: transparent; }
.form .btn { justify-self: start; }
.form-note { color: var(--muted); font-size: 13.5px; }
.form-note a { color: var(--mint-deep); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 16px 18px; border-left: 3px solid var(--mint-deep); background: var(--tint); }
.form-status[hidden] { display: none; }

/* ---------- Einwilligungsbalken (nur mit Google Ads, analytics.js) ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; display: flex; flex-wrap: wrap; gap: 14px 28px;
  align-items: center; justify-content: space-between; max-width: 1040px; margin-inline: auto; padding: 18px 22px;
  background: var(--paper); border: 1px solid var(--line-strong); box-shadow: 0 18px 48px rgba(14, 15, 17, .16); }
.consent p { max-width: 62ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.consent a { color: var(--mint-deep); }
.consent__btns { display: flex; gap: 10px; }
.consent .btn { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* ---------- Zielseiten fuer Anzeigen (/projektfilm-bau/, /social-media-bau/) ---------- */
.landing-hero { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 4vw, 56px); }
.landing-hero h1 { max-width: 20ch; font-size: clamp(36px, 5vw, 66px); letter-spacing: -.025em; line-height: 1.04; }
.landing-hero .lead { max-width: 52ch; }
.landing-hero .btn-row { margin-top: 28px; }
.landing-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(36px, 5vw, 64px);
  padding-top: 24px; border-top: 1px solid var(--line); }
.landing-proof .stat { border-top: 0; padding-top: 0; }
.landing-form { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.landing-form h2 { font-size: clamp(28px, 3.2vw, 44px); }
.landing-form .lead { margin-top: 14px; }
@media (max-width: 900px) { .landing-form { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .landing-proof { grid-template-columns: 1fr; gap: 18px; } .consent__btns { width: 100%; } .consent .btn { flex: 1; } }

/* ---------- Kundenband: klein, schwarzweiss, laeuft durch ---------- */
.brands { padding-block: 36px 40px; border-top: 1px solid var(--line); overflow: hidden; }
.brands__head { margin-bottom: 18px; }
.brands__head .label { margin: 0; color: var(--muted); }
.brands__track { display: flex; width: max-content; animation: brands-run 48s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__row { display: flex; align-items: center; gap: clamp(44px, 6vw, 96px); padding-right: clamp(44px, 6vw, 96px); }
.brands__row img { height: 30px; width: auto; filter: brightness(0); opacity: .5; }
.brands__row span { white-space: nowrap; color: var(--ink); opacity: .5; font-size: 15px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
@keyframes brands-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Fuss ---------- */
.site-footer { border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 36px; }
.footer__brand .logo { height: 18px; }
.footer__brand .brand__suffix { line-height: 18px; font-size: 11px; }
.footer__brand p { margin-top: 16px; color: var(--muted); line-height: 1.5; }
.footer__social { display: inline-block; margin-top: 16px; width: 24px; height: 24px; color: var(--ink); }
.footer__social:hover { color: var(--mint-deep); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--mint-deep); }
.footer__links { list-style: none; text-align: right; }
.footer__links li + li { margin-top: 4px; }
.footer__bottom { padding-block: 18px 28px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .brands__track { width: auto; flex-wrap: wrap; }
  .brands__track .brands__row + .brands__row { display: none; }
}

/* ---------- Breiten ---------- */
@media (max-width: 1100px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
  .audience { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header: 64px; }
  .logo { height: 19px; }
  .brand__suffix { line-height: 19px; }
  .nav-toggle { display: block; }
  .js .nav { position: fixed; inset: var(--header) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(14, 15, 17, .08); }
  .js .nav-open .nav { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 19px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { color: var(--mint-deep); }
  .nav__cta { margin-top: 18px; min-height: 50px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles .tile:nth-child(n + 3) { display: none; }
  .split--person { grid-template-columns: 1fr; }
  .split--person .split__img img { aspect-ratio: 4 / 3; height: auto; object-position: 50% 20%; }
  .team { grid-template-columns: 1fr 1fr; }
  .ref-grid--3 { grid-template-columns: 1fr 1fr; }
  .news, .split, .case-intro, .row, .contact, .cta-band__grid, .project__grid, .testis { grid-template-columns: 1fr; }
  .split--reverse .split__img { order: 0; }
  .testi { min-height: 360px; }
  .row--flip .row__img { order: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .film-cols, .team, .plain-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__links { text-align: left; }
}
@media (max-width: 700px) {
  .ref-grid, .clients, .steps, .gallery--3 { grid-template-columns: 1fr; }
  .feature__cap { position: static; max-width: none; padding: 18px var(--gutter) 0; background: none; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .tiles { gap: 10px; }
  .audience { grid-template-columns: 1fr; }
  .team, .ref-grid--3 { grid-template-columns: 1fr; }
  .brands__track { animation-duration: 28s; }
  .hero { padding-top: 6px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row2, .pair, .gallery { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 110px minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* Einzelbild über die ganze Breite (Fallstudie) */
.wide { margin-top: 10px; }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
