/* Zetac redesign — shared styles for all redesigned pages.
   The old pages (projects/*.html except app-01, social.html) still use styles.css. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter.ttf') format('truetype');
}

:root {
  --bg: #faf7f2;           /* warm white */
  --ink: #161412;          /* dark type */
  --ink-soft: #4a443e;
  --ink-muted: #7a7268;
  --line: #e4ddd2;
  --accent: #e2552c;       /* the one accent — swap here to change it everywhere */

  /* Typography follows dieproduktmacher.com: Inter throughout, headings at 400. */
  --font-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1360px;
  /* Distance from the viewport edge to the content column (for edge-bleeding layouts). */
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  --header-h: 88px;
  --space: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.6vw + 13px, 18px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.accent { color: var(--accent); }

.label {
  display: block;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
  text-decoration: none;
}
.more::after {
  content: '→';
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}
.more:hover::after,
a:hover .more::after { transform: translateX(5px); }

/* Missing copy: visible on the page, findable in code via class="ph". */
.ph {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 0 -1px 0 var(--accent);
  padding: 0 3px;
}

.photo { margin: 0; overflow: hidden; background: #e8e0d4; position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Small tag on temporary photos. Remove it together with the placeholder. */
.temp-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.78rem;
  padding: 6px 10px;
  line-height: 1.3;
}
.temp-tag b { color: var(--accent); font-weight: 600; }

/* ---------- Header ----------
   Desktop: logo | divider | Über uns · Projekte · Leistungen ……… [Kontakt]
   Mobile:  logo ……… ▸ Menü (opens all four links) */

.site-header {
  --nav-cta: #585fda;
  --nav-cta-hover: #464dc8;
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand img { width: 30px; height: 30px; }

.site-nav { flex: 1; display: flex; align-items: center; }

/* Thin vertical divider between logo and links. */
.site-nav::before {
  content: '';
  width: 1px;
  height: 28px;
  background: #d6d3ce;
  margin-inline: 32px 36px;
}

.nav-list {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* .btn shares the Kontakt pill's typography and shape (see the CTA on the homepage). */
.nav-list a,
.btn {
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}
.nav-list a:hover,
.nav-list a[aria-current="page"] { text-decoration-line: underline; }

/* Kontakt: pill button at the far right. */
.nav-list .nav-cta { margin-left: auto; }
/* Colours sampled from assets/logo.png (mean of each chevron). */
.nav-list .nav-cta,
.btn {
  --logo-navy: #19222a;
  --logo-navy-hover: #2a3542;
  --logo-gold: #d09d37;
}
.nav-list .nav-cta a,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 24px 0 26px;
  border-radius: 999px;
  background: var(--logo-navy);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
/* Gold chevron with the logo's right angle, pointing forward. */
.nav-list .nav-cta a::after {
  content: '';
  width: 7px;
  height: 7px;
  border-top: 2.5px solid var(--logo-gold);
  border-right: 2.5px solid var(--logo-gold);
  transform: rotate(45deg);
  margin-left: -2px;
  transition: transform 0.25s var(--ease);
}
.nav-list .nav-cta a:hover::after { transform: translateX(3px) rotate(45deg); }
.nav-list .nav-cta a:hover,
.nav-list .nav-cta a[aria-current="page"],
.btn:hover { background: var(--logo-navy-hover); text-decoration: none; }
/* Clearly visible keyboard focus: navy ring with a gap, readable on white. */
.nav-list .nav-cta a:focus-visible {
  outline: 2px solid var(--logo-navy);
  outline-offset: 3px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  font: inherit;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--ink);
  cursor: pointer;
}
/* Small solid triangle; points down when the menu is open. */
.menu-toggle::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  transition: transform 0.25s var(--ease);
}
.menu-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 32px;
  }
  .site-nav.is-open { display: block; }
  .site-nav::before { display: none; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-list li { width: 100%; }
  .nav-list a {
    display: block;
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-list a:hover,
  .nav-list a[aria-current="page"] { text-decoration-line: none; color: var(--nav-cta); }
  .nav-list .nav-cta { margin: 24px 0 0; }
  .nav-list .nav-cta a {
    display: inline-flex;
    border-bottom: 0;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
  }
  .nav-list .nav-cta a[aria-current="page"] { color: #fff; }
}

/* ---------- 1. Homepage hero (design: zetac-hero.html) ----------
   A rounded navy card with the background image. The homepage header
   (.site-header--hero) floats over the card's top edge, then turns into a
   white bar once the page scrolls (site.js adds .is-scrolled). */

:root {
  --cover-navy: #192432;
  --cover-navy-deep: #101923;
  --cover-gold: #edc77b;
  --cover-cream: #f8f5ee;
  --cover-margin: 8px;
  --cover-pad: clamp(20px, 3.2vw, 52px);
  --cover-head: 46px;     /* height of the header row inside the card */
}

.site-header--hero {
  position: fixed;
  inset: 0 0 auto 0;
  background: transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header--hero .wrap {
  height: auto;
  max-width: none;
  padding: calc(var(--cover-margin) + var(--cover-pad)) calc(var(--cover-margin) + var(--cover-pad)) 0;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.3s var(--ease);
}
/* Scrolled: no full-width bar. The wrapper stays transparent (no background,
   border or shadow); only the logo box and the nav box float. The gap between
   them lets clicks through to the page. */
.site-header--hero,
.site-header--hero.is-scrolled { background: transparent; border-bottom-color: transparent; box-shadow: none; }
.site-header--hero { pointer-events: none; }
.site-header--hero .brand,
.site-header--hero .site-nav { pointer-events: auto; }
.site-header--hero.is-scrolled .wrap { padding-block: 12px; }

.site-header--hero {
  --float-bg: rgba(250, 248, 244, 0.9);
  --float-ring: 0 0 0 1px rgba(25, 36, 50, 0.08), 0 8px 24px -10px rgba(25, 36, 50, 0.25);
}
.site-header--hero .brand {
  color: #fff;
  font-size: 25px;
  /* Same box geometry in both states, so nothing jumps; only the fill appears. */
  padding: 5px 14px 5px 5px;
  margin-left: -5px;
  border-radius: 11px;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header--hero.is-scrolled .brand,
.site-header--hero.is-scrolled .site-nav {
  background: var(--float-bg);
  box-shadow: var(--float-ring);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
          backdrop-filter: blur(12px) saturate(1.2);
}
.site-header--hero.is-scrolled .brand { color: var(--cover-navy); }
/* The logo's navy chevron would vanish on the navy card, so it sits on a cream tile. */
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--cover-cream);
}
.brand-mark img { width: 28px; height: 28px; }

/* Nav pill: always visible on the homepage (no Menü toggle), as in the design. */
.site-header--hero .site-nav {
  flex: 0 1 auto;
  display: block;
  position: static;
  padding: 5px;
  border: 0;
  border-radius: 11px;
  background: var(--cover-cream);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header--hero .site-nav::before { display: none; }
.site-header--hero .nav-list { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; }
.site-header--hero .nav-list li { width: auto; }
.site-header--hero .nav-list a {
  display: block;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--cover-navy);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-underline-offset: 5px;
}
.site-header--hero .nav-list a:hover { text-decoration-line: underline; color: var(--cover-navy); }
.site-header--hero .nav-list .nav-cta { margin: 0; }
.site-header--hero .nav-list .nav-cta a {
  height: auto;
  padding: 9px 12px;
  border-radius: 7px;
  background: var(--cover-navy);
  color: #fff;
  font-size: 14px;
}
.site-header--hero .nav-list .nav-cta a::after { display: none; }
.site-header--hero .nav-list .nav-cta a:hover { background: #2a3542; color: #fff; text-decoration: none; }
.site-header--hero .nav-list a:focus-visible { outline: 2px solid var(--cover-navy); outline-offset: 2px; }
.site-header--hero .brand:focus-visible { outline-color: var(--cover-gold); }

/* Full-bleed: no outer margin or rounded corners; covers at least the first screen
   and grows if the content needs more room. The padding includes --cover-margin so
   the content stays aligned with the floating header (which uses the same offset). */
.cover {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  min-height: max(590px, 100vh);
  min-height: max(590px, 100svh);
  /* Top padding leaves room for the floating header row. */
  --cover-inset: calc(var(--cover-margin) + var(--cover-pad));
  padding: calc(var(--cover-inset) + var(--cover-head)) var(--cover-inset) var(--cover-inset);
  display: flex;
  flex-direction: column;
  color: #fff;
  position: relative;
  isolation: isolate;          /* keeps the two layers below behind the content */
  background: var(--cover-navy);
}
/* Background image as its own layer: slow sideways pan + subtle zoom (1.04 → 1.08),
   35s one way, then 35s back (alternate), with a sine ease so both turnarounds are
   smooth. Only this layer moves; the overlay and all content stay still.
   Coverage: at the smallest scale (1.04) the image overhangs each side by 2%,
   more than the 1.5% pan, so the hero is always fully covered.
   The negative delay starts mid-cycle, where the motion is fastest, so it is
   visible within a few seconds of loading. */
.cover::before,
.cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cover::before {
  z-index: -3;
  background: url("assets/zetac-background.jpg") var(--cover-bg-x, 65%) center / cover no-repeat;
  transform: translateX(-1.5%) scale(1.04);
  animation: cover-drift 35s cubic-bezier(0.37, 0, 0.63, 1) -17.5s infinite alternate;
  will-change: transform;
}
/* Readability overlay (unchanged), above the moving image. */
.cover::after {
  z-index: -1;
  background: linear-gradient(90deg, #101923ed, #10192358 68%, #10192319);
}
@keyframes cover-drift {
  from { transform: translateX(-1.5%) scale(1.04); }
  to   { transform: translateX(1.5%) scale(1.08); }
}
/* Phones: a 1.5% pan of a narrow hero is only a few pixels. The image layer is
   made 12% wider on each side (the image is height-fitted here, so the framing
   stays the same) and pans ±4% of that wider layer, still well inside its overhang. */
@media (max-width: 600px) {
  .cover::before {
    inset: 0 -12%;
    transform: translateX(-4%) scale(1.04);
    animation-name: cover-drift-narrow;
  }
}
@keyframes cover-drift-narrow {
  from { transform: translateX(-4%) scale(1.04); }
  to   { transform: translateX(4%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .cover::before { animation: none; }
}

/* Background video layer: between the still image and the readability overlay.
   Camera locked: no transform. Same framing as the still (cover + same x-position).
   site.js adds .video-pending while it tries to play the clip (the still then holds
   still, unscaled, so the crossfade lines up), and .has-video once frames are playing. */
.cover-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--cover-bg-x, 65%) center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.cover.has-video .cover-video { opacity: 1; }
.cover.video-pending::before,
.cover.has-video::before {
  inset: 0;
  animation: none;
  transform: none;
}
/* Three short statements, one per line from tablet up (.cover-line); on phones they
   flow inline and wrap naturally. Sized so the longest line ("E-Commerce von A bis Z.")
   fits comfortably beside nothing and above the supporting text. */
.cover h1 {
  font-size: clamp(32px, 6vw, 88px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.04;
  margin: clamp(40px, 7vw, 96px) 0 44px;
  max-width: 100%;
  overflow-wrap: break-word;
}
.cover-line { display: block; white-space: nowrap; }
/* Very narrow phones: the nav pill wraps to two rows, so give the headline extra room below it. */
@media (max-width: 360px) { .cover h1 { margin-top: 72px; } }
.cover-bottom {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.cover h1,
.cover-bottom p { text-shadow: 0 1px 14px rgba(16, 25, 35, 0.55); }
.cover-bottom p {
  max-width: 43ch;
  font-size: clamp(16px, 1.65vw, 22px);
  line-height: 1.5;
}
.cover-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 14px;
  text-decoration: none;
}
.cover-action span {
  padding: 11px 15px;
  border-radius: 8px;
  background: var(--cover-navy);
  transition: background-color 0.2s var(--ease);
}
.cover-action .cover-arrow {
  background: var(--cover-gold);
  color: var(--cover-navy);
  transition: transform 0.35s var(--ease);
}
.cover-action:hover span:first-child { background: #2a3542; }
.cover-action:hover .cover-arrow { transform: translateX(3px); }
.cover-action:focus-visible { outline: 2px solid var(--cover-gold); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 600px) {
  :root { --cover-head: 114px; }   /* brand box + nav pill, stacked */
  .site-header--hero .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-header--hero.is-scrolled .wrap { padding-block: 10px; gap: 10px; }
  .site-header--hero .nav-list a,
  .site-header--hero .nav-list .nav-cta a { padding-inline: 7px; font-size: 12px; }
  .cover-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cover-line { white-space: normal; }   /* phones: each statement on its own line(s), wrapping naturally */
  /* Phones: the text spans the full width, so the ribbons' gold highlights run
     behind it. Extra top/bottom shading keeps headline and lead readable. */
  .cover { --cover-bg-x: 61%; }
  .cover::after {
    background:
      linear-gradient(180deg, #101923c7 0%, #10192333 42%, #10192333 52%, #101923e0 100%),
      linear-gradient(90deg, #101923ed, #10192358 68%, #10192319);
  }
}

/* Jump target for "Leistungen entdecken": keep the heading clear of the fixed header. */
/* Negative margin cancels the section's top padding so the heading lands ~32px under the header. */
#leistungen { scroll-margin-top: calc(74px + 32px - clamp(56px, 7vw, 112px)); }
@media (max-width: 600px) { #leistungen { scroll-margin-top: calc(116px + 24px - clamp(56px, 7vw, 112px)); } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Homepage: Leistungen ---------- */

/* Warm off-white band, navy text, thin dividers. Rows: icon | title | description.
   Uses its own .svc-rows list, so services.html (.services) is unaffected. */
.home-services {
  --svc-navy: #192432;
  --svc-gold-soft: #f0e3c6;
  --svc-gold-ink: #8a6420;
  padding-block: clamp(56px, 7vw, 112px);
  background: #f5f1e8;
  color: var(--svc-navy);
}
.home-services .projects-head { margin-bottom: 0; }
.home-services .projects-head h2 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -0.03em; }
.home-services .projects-head .more { color: var(--svc-navy); }

/* "Alle Leistungen ↗": small gold diagonal arrow (drawn, since ↗ isn't in the loaded Inter subset). */
.more--out::after {
  content: '';
  width: 0.7em;
  height: 0.7em;
  background: #b8862c;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9 9 3M4 3h5v5' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 9 9 3M4 3h5v5' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.more--out:hover::after,
a.more--out:hover::after { transform: translate(2px, -2px); }

.svc-rows { list-style: none; margin: 0; padding: 0; }
.svc-rows li {
  display: grid;
  grid-template-columns: auto minmax(0, 6fr) minmax(0, 5fr);
  gap: 16px clamp(24px, 3.5vw, 52px);
  align-items: start;
  padding-block: clamp(32px, 4.5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.svc-icon {
  display: grid;
  place-items: center;
  width: clamp(48px, 4.2vw, 60px);
  aspect-ratio: 1;
  border-radius: 14px;
  background: var(--svc-gold-soft);
  color: var(--svc-gold-ink);
}
.svc-icon svg { width: 44%; height: auto; }
.svc-rows h3 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  overflow-wrap: break-word;
  hyphens: manual;
}
.svc-rows .svc-text p { color: var(--svc-navy); }
.svc-rows .svc-text small { color: #6b6459; }

@media (max-width: 760px) {
  /* Icon stays beside the title; the description moves under the title. */
  .svc-rows li { grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; }
  .svc-rows .svc-text { grid-column: 2; padding-top: 0; }
  .svc-rows h3 { font-size: clamp(1.6rem, 7vw, 2rem); padding-top: 0.15em; }
  .svc-icon { width: 44px; border-radius: 12px; }
}

/* Reveal per row: each <li data-reveal> gets .reveal-pending from site.js (only with
   JS and without reduced motion), then .is-revealed once it enters the viewport.
   The whole row slides in from the right (60px → 0) while fading in, ~1100ms with a
   smooth deceleration (no overshoot). Rows that enter together are staggered 200ms
   apart by site.js (data-reveal-stagger on .svc-rows). */
.home-services { overflow-x: clip; }   /* the offset never causes sideways scroll */
.svc-rows li {
  --svc-shift: 60px;
  --svc-move: 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  --svc-fade: 1.1s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.svc-rows li.reveal-pending { opacity: 0; translate: var(--svc-shift) 0; }
.svc-rows li.reveal-pending.is-revealed {
  opacity: 1;
  translate: 0 0;
  transition: opacity var(--svc-fade), translate var(--svc-move);
}
@media (prefers-reduced-motion: reduce) {
  .svc-rows li.reveal-pending { opacity: 1; translate: none; }
}

/* ---------- Homepage: call to action ----------
   Headline: the shared h1/h2/h3 rule (Inter, 400, -0.03em), like the Leistungen
   headings. Text: plain body copy, like .svc-text p. Button: .btn (Kontakt pill). */

.idea-cta {
  padding-top: var(--space);
  display: grid;
  justify-items: center;
  text-align: center;
}
.idea-cta h2 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.2;
  max-width: 24ch;
  text-wrap: balance;
}
/* "Idee." keeps the headline's size and weight; only the soft gold shape is added. */
.idea-word {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding-inline: 0.3em;
}
.idea-word::before {
  content: '';
  position: absolute;
  inset: -0.1em -0.08em -0.14em;
  z-index: -1;
  background: url("assets/idee-shape.svg") center / 100% 100% no-repeat;
}
.idea-cta p { margin-top: clamp(20px, 2.5vw, 32px); max-width: 44rem; text-wrap: balance; }
.idea-cta .btn { margin-top: clamp(28px, 3.5vw, 44px); }
.btn-arrow { color: var(--cover-gold); transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:focus-visible { outline: 2px solid var(--logo-navy); outline-offset: 3px; }

@media (max-width: 600px) {
  .idea-break { display: none; }
}

/* ---------- 2. Projects ---------- */

.projects { padding-top: var(--space); }
.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: clamp(32px, 4vw, 56px);
  /* Divider limited to the content width (a border would run into the gutters). */
  background: linear-gradient(var(--line), var(--line)) center bottom / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.projects-head h2 {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  letter-spacing: -0.02em;
}
.projects-head .more { white-space: nowrap; }
.projects-head h2 sup { font-size: 0.6em; color: var(--accent); margin-left: 4px; }

.case a { text-decoration: none; display: block; }
.case .photo img { transition: transform 1.1s var(--ease); }
.case a:hover .photo img { transform: scale(1.025); }

.case-num { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.case h3 { font-size: clamp(2.75rem, 6.5vw, 6.5rem); }
.case-caption-text { font-size: 1.1rem; color: var(--ink-soft); max-width: 36ch; }

/* Composition A: full-width image, caption below. */
.case--wide .photo { aspect-ratio: 16 / 9; max-height: 90svh; width: 100%; }
.case--wide .case-caption {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px 32px;
  align-items: end;
  padding-top: clamp(20px, 2.5vw, 32px);
}
.case--wide .case-caption > div:last-child { display: grid; gap: 16px; justify-items: start; }

/* Composition B: image bleeds to one edge, text beside it. */
.case--split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  margin-top: var(--space);
}
.case--split .photo { aspect-ratio: 5 / 6; max-height: 92svh; width: 100%; }
.case--split .case-body {
  padding: 32px var(--edge) 32px clamp(32px, 5vw, 88px);
  display: grid;
  gap: 20px;
  justify-items: start;
}
/* Mirrored: text left, image bleeds right. */
.case--split.is-mirrored { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.case--split.is-mirrored .photo { order: 2; }
.case--split.is-mirrored .case-body { padding: 32px clamp(32px, 5vw, 88px) 32px var(--edge); }

.case-meta { font-size: 0.85rem; color: var(--ink-muted); }
.case-body h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
.case-body .list { width: 100%; }

@media (max-width: 900px) {
  .case--wide .photo { aspect-ratio: 4 / 3; }
  .case--wide .case-caption { display: grid; grid-template-columns: 1fr; }
  .case--split,
  .case--split.is-mirrored { display: block; }
  .case--split .photo { aspect-ratio: 4 / 5; }
  .case--split .case-body,
  .case--split.is-mirrored .case-body { padding: 24px var(--gutter) 0; }
}

/* ---------- Homepage: app showcase ("Ausgewählte Projekte") ----------
   Warm off-white band. Copy left, four overlapping screens right.
   Heading uses the shared h1/h2/h3 rule (Inter 400); button is .btn. */

.showcase-band {
  margin-top: var(--space);
  padding-block: clamp(64px, 8vw, 120px);
  background: #f5f1e8;
  color: #192432;
}
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px clamp(32px, 4vw, 72px);
}
.showcase-copy { display: grid; justify-items: start; }
.eyebrow {
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: #8a6420;
}
.showcase-copy h3 {
  margin-top: clamp(16px, 2vw, 24px);
  font-size: clamp(2.25rem, 3.9vw, 3.75rem);
  max-width: 20ch;
  text-wrap: balance;
}
.showcase-copy p { margin-top: clamp(20px, 2.5vw, 32px); max-width: 40ch; font-size: clamp(1rem, 1.3vw, 1.25rem); }
.showcase-apps {
  list-style: none;
  margin: clamp(24px, 3vw, 36px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  width: min(100%, 30rem);
  color: #4a5361;
}
.showcase-apps li { display: flex; align-items: center; gap: 12px; }
/* Very narrow phones: the longer labels (Verkaufsverwaltung) need a single column. */
@media (max-width: 380px) { .showcase-apps { grid-template-columns: 1fr; } }
.showcase-apps li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8862c;
  flex: none;
}
.showcase-copy .btn { margin-top: clamp(28px, 3.5vw, 40px); }

.showcase-stack { margin: 0; }
/* Each screen: position/size in % of the stage, plus a fixed angle. */
.showcase-screens { position: relative; aspect-ratio: 1 / 0.9; }
.screen {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w, 41%);
  height: auto;
  aspect-ratio: 780 / 1100;
  object-fit: cover;
  object-position: top;   /* screenshots are taller than the card: fill the width, show the top, clip the rest */
  border-radius: clamp(12px, 1.6vw, 22px);
  transform: rotate(var(--r));
  box-shadow:
    0 0 0 1px rgba(25, 36, 50, 0.06),
    0 2px 6px rgba(25, 36, 50, 0.06),
    0 24px 48px -12px rgba(25, 36, 50, 0.28);
}
.screen--zeit          { --x: 3%;  --y: 0%;  --r: -9deg;  z-index: 1; }
.screen--verkauf       { --x: 52%; --y: 17%; --r: 10deg;  z-index: 2; }
.screen--kommunikation { --x: 30%; --y: 11%; --r: 2deg;   z-index: 3; }
.screen--lager         { --x: 4%;  --y: 23%; --r: -3.5deg; z-index: 4; }

.showcase-stack figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: #6b6459;
}

/* Assemble as a group: the screens start slightly pushed apart in different directions
   and fade/move into place together (one shared trigger on .showcase-stack), ~1600ms
   each, back to front with a 120ms stagger. `translate` is separate from `transform`,
   so each screen keeps its angle, size and stacking throughout; the stage keeps its
   aspect-ratio, so there is no layout shift. Once settled nothing moves.
   .reveal-pending is only added by site.js (and not with reduced motion). */
.showcase-band { overflow-x: clip; }
.screen--zeit          { --dx: -34px; --dy: -24px; --delay: 0ms; }
.screen--verkauf       { --dx: 36px;  --dy: -18px; --delay: 120ms; }
.screen--kommunikation { --dx: 24px;  --dy: 28px;  --delay: 240ms; }
.screen--lager         { --dx: -28px; --dy: 30px;  --delay: 360ms; }
.reveal-pending .screen { opacity: 0; translate: var(--dx) var(--dy); }
.reveal-pending.is-revealed .screen {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 1.6s cubic-bezier(0.25, 0.1, 0.25, 1) var(--delay),
    translate 1.6s cubic-bezier(0.33, 1, 0.68, 1) var(--delay);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-pending .screen { opacity: 1; translate: none; }
}

@media (max-width: 900px) {
  /* Text first, collage below; larger screens so the front one stays legible. */
  .showcase { grid-template-columns: 1fr; }
  .showcase-stack { width: 100%; max-width: 520px; justify-self: center; }
  .showcase-screens { aspect-ratio: 1 / 1.02; }
  .screen { --w: 48%; }
  .screen--zeit          { --x: 4%;  --y: 1%;  }
  .screen--verkauf       { --x: 48%; --y: 15%; }
  .screen--kommunikation { --x: 27%; --y: 10%; }
  .screen--lager         { --x: 3%;  --y: 24%; }
}

/* ---------- Homepage: before/after webshop comparison ----------
   Two images stacked in one frame. "Vorher" (old) is clipped from the right by
   --pos, so neither image moves or scales. site.js ([data-compare]) updates --pos
   from mouse/touch drag and from the range input (keyboard, screen readers). */

.compare-block { margin-top: clamp(88px, 11vw, 168px); }
/* A second comparison directly below the first: closer, so they read as a pair. */
.compare-block--follow { margin-top: clamp(56px, 7vw, 104px); }
.compare-block h3 { font-size: clamp(1.75rem, 3.4vw, 3.1rem); text-wrap: balance; }
.compare-block > p { margin-top: clamp(10px, 1.2vw, 16px); font-size: clamp(1rem, 1.3vw, 1.25rem); }
.compare { margin: clamp(24px, 3vw, 36px) 0 0; }
.compare-frame {
  --compare-gold: #e2bd6d;
  position: relative;
  /* content-box: the 16:9 ratio applies inside the border, exactly matching the
     1920 × 1080 images, so object-fit never crops or rescales them unevenly. */
  box-sizing: content-box;
  aspect-ratio: 16 / 9;
  border: 1px solid #d6c9ae;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;       /* vertical swipes still scroll the page on phones */
}
.compare-frame.is-ready { cursor: ew-resize; }
.compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;   /* identical crop for both images */
  pointer-events: none;
}
.compare-img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--compare-gold);
  pointer-events: none;
  z-index: 2;
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: clamp(44px, 4vw, 56px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edc77b;
  color: #192432;
  box-shadow: 0 4px 16px rgba(25, 36, 50, 0.28);
}
.compare-handle svg { width: 46%; height: auto; }
/* Arrow cue: the two chevrons nudge outwards (left one left, right one right) while
   the divider demo runs, and shift out slightly on hover, hinting that the divider
   can be dragged in both directions. The handle also gets a soft gold halo. */
.compare-handle svg path { transition: transform 0.35s var(--ease); }
.compare-frame.is-ready:hover .compare-chevron--left { transform: translateX(-1.5px); }
.compare-frame.is-ready:hover .compare-chevron--right { transform: translateX(1.5px); }
.compare-frame.is-demo .compare-chevron--left { animation: compare-nudge-left 0.83s ease-in-out 3; }
.compare-frame.is-demo .compare-chevron--right { animation: compare-nudge-right 0.83s ease-in-out 3; }
.compare-frame.is-demo .compare-handle { animation: compare-halo 1.25s ease-in-out 2; }
@keyframes compare-nudge-left  { 50% { transform: translateX(-2px); } }
@keyframes compare-nudge-right { 50% { transform: translateX(2px); } }
@keyframes compare-halo {
  50% { box-shadow: 0 0 0 8px rgba(237, 199, 123, 0.35), 0 4px 16px rgba(25, 36, 50, 0.28); }
}
@media (prefers-reduced-motion: reduce) {
  .compare-handle svg path { transition: none; }
}

/* The range input covers the frame invisibly; pointer input goes to the frame. */
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.compare-range:focus-visible ~ .compare-divider .compare-handle {
  outline: 3px solid #192432;
  outline-offset: 3px;
  box-shadow: 0 0 0 9px rgba(237, 199, 123, 0.45), 0 4px 16px rgba(25, 36, 50, 0.28);
}

.compare-label {
  position: absolute;
  bottom: clamp(10px, 1.4vw, 18px);
  z-index: 1;
  padding: 6px 14px;
  border-radius: 8px;
  background: #192432;
  color: #fff;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.compare-label--before { left: clamp(10px, 1.4vw, 18px); }
.compare-label--after  { right: clamp(10px, 1.4vw, 18px); }
/* Hide a label once the divider covers its side. */
.compare-frame.hide-before .compare-label--before,
.compare-frame.hide-after .compare-label--after { opacity: 0; }

@media (max-width: 600px) {
  .compare-frame { border-radius: 12px; }
  .compare-label { bottom: 8px; padding: 3px 8px; border-radius: 6px; font-size: 0.7rem; }
  .compare-label--before { left: 8px; }
  .compare-label--after  { right: 8px; }
}
.compare-frame:has(.compare-range:focus-visible) { border-color: #b8862c; }

/* ---------- Homepage: Unser Team (before the contact section) ---------- */

.team-intro {
  padding-top: var(--space);
  color: #192432;
}
.team-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 8px 16px 8px 14px;
  border-radius: 4px;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.team-eyebrow::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: #e2bd6d;
}
/* Thin divider above the label, limited to the content width. */
.team-intro::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--line);
}

.team-grid {
  display: grid;
  grid-template-columns: 48% minmax(0, 1fr);   /* photo = 48% of the section width */
  align-items: center;
  gap: 40px clamp(32px, 4.5vw, 72px);
  margin-top: clamp(32px, 4.5vw, 64px);
}
.team-photo { margin: 0; }
.team-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}
.team-photo figcaption { margin-top: 10px; font-size: 0.9rem; color: #6b6459; }

.team-copy h2 { font-size: clamp(2.4rem, 3.9vw, 3.6rem); }
.team-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px clamp(24px, 3.5vw, 56px);
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  line-height: 1.45;
}
.team-action {
  display: inline-flex;
  align-items: stretch;
  gap: 12px;
  margin-top: clamp(28px, 3.5vw, 44px);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.team-action span {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 8px;
  background: #192432;
  color: #fff;
  transition: background-color 0.2s var(--ease);
}
.team-action .team-action__arrow {
  justify-content: center;
  width: 52px;
  padding: 0;
  background: #e2bd6d;
  color: #192432;
  font-size: 1.25rem;
  transition: transform 0.35s var(--ease);
}
.team-action:hover span:first-child { background: #2a3542; }
.team-action:hover .team-action__arrow { transform: translateX(3px); }
.team-action:focus-visible { outline: 2px solid #192432; outline-offset: 4px; border-radius: 8px; }

@media (max-width: 860px) {
  /* Photo above the text, paragraphs stacked. */
  .team-grid { grid-template-columns: 1fr; }
  .team-cols { grid-template-columns: 1fr; }
}

/* Reveal: photo from the left, the whole text block from the right, both at once
   (one trigger on .team-grid). 48px desktop / 20px stacked layout, ~1.4s ease-out,
   gentle fade. `translate` leaves the grid layout untouched, so both end exactly at
   their normal positions. .reveal-pending is only added by site.js (and not with
   reduced motion), so without JS everything is visible. */
.team-intro { overflow-x: clip; }
.team-grid {
  --team-shift: 48px;
  --team-move: 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  --team-fade: 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
@media (max-width: 860px) { .team-grid { --team-shift: 20px; } }
.team-grid.reveal-pending .team-photo { opacity: 0; translate: calc(-1 * var(--team-shift)) 0; }
.team-grid.reveal-pending .team-copy  { opacity: 0; translate: var(--team-shift) 0; }
.team-grid.reveal-pending.is-revealed .team-photo,
.team-grid.reveal-pending.is-revealed .team-copy {
  opacity: 1;
  translate: 0 0;
  transition: opacity var(--team-fade), translate var(--team-move);
}
@media (prefers-reduced-motion: reduce) {
  .team-grid.reveal-pending .team-photo,
  .team-grid.reveal-pending .team-copy { opacity: 1; translate: none; }
}

/* ---------- Closing contact line ---------- */

.closing {
  padding-block: var(--space) clamp(64px, 8vw, 120px);
}
.closing h2 {
  font-size: clamp(2.5rem, 6.5vw, 6.5rem);
  max-width: 13ch;
}
.closing .mail {
  display: inline-block;
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* Homepage variant: envelope illustration to the right of the text.
   The text keeps the .closing h2 / .mail styles unchanged. */
.closing--art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px clamp(32px, 5vw, 64px);
}
.contact-art {
  position: relative;
  width: clamp(240px, 32vw, 440px);
  aspect-ratio: 1.25;
}
.contact-art > * { position: absolute; }
.contact-art__oval {
  inset: 10% 17%;
  border-radius: 50%;
  background: #efe3ca;
  transform: rotate(-15deg);
}
.contact-art__letter {
  top: 17%;
  left: 38%;
  width: 43%;
  height: 59%;
  border: clamp(5px, 0.6vw, 8px) solid #fdfbf7;
  border-radius: 10px;
  background: repeating-linear-gradient(to bottom, #fdfbf7 0 17px, #d9c9ab 17px 18px, #fdfbf7 18px 24px);
  transform: rotate(13deg);
  box-shadow: 0 12px 30px rgba(25, 36, 50, 0.09);
}
.contact-art__envelope {
  top: 36%;
  left: 19%;
  width: 61%;
  height: 47%;
  display: grid;
  place-items: center;
  border-radius: clamp(10px, 1vw, 14px);
  background: #192432;
  color: #edc77b;
  transform: rotate(-10deg);
  box-shadow: 0 12px 24px rgba(25, 36, 50, 0.14), 0 28px 48px -16px rgba(25, 36, 50, 0.22);
}
.contact-art__envelope svg { width: 16%; height: auto; }
.contact-art__spark {
  right: 10%;
  top: 11%;
  width: 9%;
  height: auto;
  color: #946820;
}

@media (max-width: 640px) {
  /* Illustration below the email link. */
  .closing--art { grid-template-columns: 1fr; }
  .contact-art { width: min(100%, 270px); justify-self: center; margin-top: 8px; }
}

/* ---------- Subpages: shared head ---------- */

.page-head { padding-block: clamp(56px, 8vw, 120px) clamp(40px, 5vw, 72px); }
.page-head h1 { font-size: clamp(3.4rem, 9vw, 8.5rem); }
.page-head p {
  margin-top: clamp(20px, 2.5vw, 32px);
  max-width: 34ch;
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.section { padding-top: var(--space); }

/* ---------- App 01 detail ---------- */

.crumbs {
  padding-top: clamp(28px, 4vw, 48px);
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.project-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px 48px;
  align-items: end;
  padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 72px);
}
.project-head h1 { font-size: clamp(4rem, 13vw, 12rem); }
.project-head .lede {
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-soft);
}

.hero-shot { aspect-ratio: 16 / 9; max-height: 92svh; width: 100%; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-size: 0.82rem; color: var(--ink-muted); }
.facts dd { margin: 4px 0 0; font-weight: 400; }

.story {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 48px;
}
.story h2 { font-size: clamp(1.75rem, 2.8vw, 2.75rem); }
.story-text { display: grid; gap: 20px; max-width: 44rem; }
.story-text .big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list li {
  display: flex;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.list li::before { content: '→'; color: var(--accent); }

.inset-shot {
  margin-top: var(--space);
  margin-left: auto;
  width: min(100%, 72%);
  aspect-ratio: 16 / 10;
}

.next-project {
  display: block;
  margin-top: var(--space);
  padding-block: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.next-project h2 { font-size: clamp(3rem, 9vw, 8rem); margin-top: 12px; }

@media (max-width: 900px) {
  .project-head { grid-template-columns: 1fr; }
  .hero-shot { aspect-ratio: 4 / 3; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story { grid-template-columns: 1fr; }
  .inset-shot { width: 100%; aspect-ratio: 4 / 3; }
}

/* ---------- Über uns ---------- */

.about-photo { aspect-ratio: 21 / 9; width: 100%; }

.prose {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 48px;
}
.prose-text { display: grid; gap: 20px; max-width: 44rem; }
.prose-text p:first-child {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.people {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
  gap: 24px 32px;
}
.people .person:nth-child(3) { margin-top: clamp(48px, 8vw, 128px); }
.person .photo { aspect-ratio: 4 / 5; }
.person h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-top: 16px; letter-spacing: -0.02em; }
.person .role { color: var(--ink-muted); font-size: 0.95rem; margin-top: 6px; }
.person .quote { margin-top: 12px; }

@media (max-width: 900px) {
  .about-photo { aspect-ratio: 4 / 3; }
  .prose { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; gap: 16px; }
  .people .person:nth-child(3) { margin-top: 48px; }
  .people .people-label { grid-column: 1 / -1; }
}

/* ---------- Leistungen ---------- */

.services { list-style: none; margin: 0; padding: 0; counter-reset: svc; }
.services li {
  counter-increment: svc;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 6fr) minmax(0, 5fr);
  gap: 16px 32px;
  padding-block: clamp(32px, 4.5vw, 64px);
  border-top: 1px solid var(--line);
}
.services li:last-child { border-bottom: 1px solid var(--line); }
.services li::before {
  content: counter(svc, decimal-leading-zero);
  color: var(--accent);
  font-weight: 600;
  padding-top: 0.6em;
}
.services h2,
.services h3 { font-size: clamp(2rem, 4vw, 3.5rem); }
.svc-text { display: grid; gap: 12px; align-content: start; padding-top: 0.4em; }
.svc-text small { color: var(--ink-muted); font-size: 0.9rem; }

@media (max-width: 760px) {
  .services li { grid-template-columns: 1fr; }
  .services li::before { padding-top: 0; }
}

/* ---------- Kontakt ---------- */

.contact-mail {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 8vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
  overflow-wrap: anywhere;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: clamp(48px, 6vw, 88px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.contact-grid dt { font-size: 0.82rem; color: var(--ink-muted); }
.contact-grid dd { margin: 4px 0 0; font-weight: 400; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */

/* Navy panel straight on the page background, full width, top corners rounded
   (the page colour shows behind the curves). */
.zf {
  --zf-navy: var(--cover-navy);
  --zf-gold: var(--cover-gold);
  --zf-white: #fffdf8;
  --zf-radius: clamp(18px, 3vw, 40px);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.zf-panel {
  background: var(--zf-navy);
  color: var(--zf-white);
  border-radius: var(--zf-radius) var(--zf-radius) 0 0;
}
.zf-inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(28px, 3vw, 40px);
}
.zf a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
.zf a:hover { text-decoration-line: underline; }
.zf a:focus-visible { outline: 2px solid var(--zf-gold); outline-offset: 3px; border-radius: 2px; }

.zf-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px 24px;
  padding-bottom: clamp(32px, 4vw, 48px);
}
.zf-title {
  margin: 0 0 14px;
  color: var(--zf-gold);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.zf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* Signature: logo tile, then the wordmark with the gold tagline directly below it,
   both lines left-aligned as one group. */
.zf-sign { padding-bottom: clamp(28px, 4vw, 48px); }
.zf .zf-brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  color: var(--zf-white);
}
.zf .zf-brand:hover { text-decoration: none; }
/* Light tile keeps the logo's navy chevron visible on the navy panel. */
.zf-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: clamp(64px, 10vw, 148px);
  aspect-ratio: 1;
  border-radius: 18%;
  background: var(--zf-white);
}
.zf-logo img { width: 78%; height: 78%; object-fit: contain; }
.zf-brand-text { display: flex; flex-direction: column; align-items: flex-start; }
.zf-word {
  font-size: clamp(56px, 9.5vw, 136px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin-left: -0.04em;      /* optical: the Z's side bearing, so its stem meets the tagline's edge */
}
.zf-tag {
  margin-top: clamp(6px, 0.9vw, 12px);
  font-size: clamp(17px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--zf-gold);
}

/* Legal row: copyright left, Impressum and Datenschutz right, under a subtle rule. */
.zf-small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 20px;
  border-top: 1px solid #3a4553;
  color: #c7cdd3;
  font-size: 15px;
}
.zf .zf-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.zf-legal a {
  display: inline-block;
  padding: 4px 0;
  color: var(--zf-white);
  text-decoration-line: underline;
  text-decoration-color: rgba(237, 199, 123, 0.55);
  text-decoration-thickness: 1px;
}
.zf-legal a:hover { text-decoration-color: var(--zf-gold); }

@media (max-width: 700px) {
  .zf-cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .zf-small { justify-content: flex-start; }
}

main > :last-child:not(.closing):not(.next-project) { margin-bottom: var(--space); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* ---------- Placeholder pages (Über uns, Projekte, Leistungen) ----------
   Only the homepage navbar on an empty white page, until the redesign.
   The navbar boxes are shown filled from the start (no hero card behind them). */
.page-blank { background: #fff; }
.page-blank-main { min-height: 100vh; min-height: 100svh; }
.page-blank .site-header--hero .brand,
.page-blank .site-header--hero .site-nav {
  background: var(--float-bg);
  box-shadow: var(--float-ring);
}
.page-blank .site-header--hero .brand { color: var(--cover-navy); }

/* ---------- Projekte overview (projekte.html) and its category pages ----------
   Large heading, then three full-width category rows. Each row is a link: on hover
   or keyboard focus it darkens to navy, and inside the gold box the arrow slides
   out to the right while an identical one slides in from the left. */
.page-projekte { background: var(--cover-cream); }
.pk {
  --pk-line: #ded6c9;
  --pk-ease: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --pk-box: 44px;          /* gold arrow box; the arrows travel one box width */
  /* Clear the fixed navbar; left/right edges line up with the logo and the nav box. */
  padding: calc(var(--cover-margin) + 2 * var(--cover-pad) + var(--cover-head) + 24px)
           calc(var(--cover-margin) + var(--cover-pad)) calc(var(--cover-pad) * 2);
  color: var(--cover-navy);
}
.pk-heading {
  margin: 0 0 clamp(16px, 3vw, 28px);
  font-size: clamp(40px, 5.6vw, 80px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.1;
}
/* Projekte overview, desktop: heading on the left, list on the right (~2/3 width).
   The heading's line box starts at the first row's top border. */
@media (min-width: 900px) {
  .page-projekte .pk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }
  .page-projekte .pk-heading { line-height: 1; }
  .page-projekte .pk-intro { transform: translateY(-6px); }   /* cap height meets the first row's line */
  .page-projekte .pk-contact { margin-bottom: 0; }
}
/* Compact contact button under the heading (left column; between heading and list on phones). */
.page-projekte .pk-heading { margin-bottom: 20px; }
.pk-contact {
  --pk-contact-ease: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(16px, 3vw, 28px);
  padding: 9px 14px;
  border-radius: 7px;
  background: var(--cover-navy);
  color: #fffdf8;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color var(--pk-contact-ease), color var(--pk-contact-ease);
}
/* Clipped arrow area: on hover/focus the arrow slides out to the right while an
   identical one slides in from the left (same motion as the category rows). */
.pk-contact-arrow {
  position: relative;
  width: 14px;
  height: 1.5em;
  overflow: hidden;
  color: var(--cover-gold);
  font-size: 13px;
  transition: color var(--pk-contact-ease);
}
.pk-contact-arrow span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform var(--pk-contact-ease);
}
.pk-contact-arrow span + span { transform: translateX(-100%); }
.pk-contact:is(:hover, :focus-visible) { background: var(--cover-gold); color: var(--cover-navy); }
.pk-contact:is(:hover, :focus-visible) .pk-contact-arrow { color: var(--cover-navy); }
.pk-contact:is(:hover, :focus-visible) .pk-contact-arrow span:first-child { transform: translateX(100%); }
.pk-contact:is(:hover, :focus-visible) .pk-contact-arrow span + span { transform: translateX(0); }
.pk-contact:focus-visible { outline: 2px solid var(--cover-navy); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .pk-contact, .pk-contact-arrow, .pk-contact-arrow span { transition: none; }
  .pk-contact-arrow span + span { display: none; }
  .pk-contact:is(:hover, :focus-visible) .pk-contact-arrow span:first-child { transform: none; }
}
.pk-list { list-style: none; margin: 0; padding: 0; }
.pk-list li { border-top: 1px solid var(--pk-line); }
.pk-list li:last-child { border-bottom: 1px solid var(--pk-line); }
.pk-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) var(--pk-box);
  gap: clamp(15px, 2vw, 28px);
  align-items: center;
  padding: clamp(18px, 2vw, 26px) clamp(12px, 1.2vw, 18px);
  color: inherit;
  text-decoration: none;
  transition: background-color var(--pk-ease), color var(--pk-ease);
}
.pk-title {
  font-size: clamp(20px, 2.2vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.pk-desc {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.5;
  color: #53585f;
  transition: color var(--pk-ease);
}
.pk-arrow {
  position: relative;
  display: grid;
  place-items: center;
  height: var(--pk-box);
  border-radius: 9px;
  font-size: 18px;
  background: var(--cover-gold);
  color: var(--cover-navy);
  overflow: hidden;        /* clips both arrows inside the box */
}
.pk-arrow span {
  position: absolute;
  transition: transform var(--pk-ease);
}
.pk-arrow span + span { transform: translateX(calc(-1 * var(--pk-box))); }
.pk-row:is(:hover, :focus-visible) { background: var(--cover-navy); color: #fffdf8; }
.pk-row:is(:hover, :focus-visible) .pk-desc { color: #ece6da; }
.pk-row:is(:hover, :focus-visible) .pk-arrow span:first-child { transform: translateX(var(--pk-box)); }
.pk-row:is(:hover, :focus-visible) .pk-arrow span + span { transform: translateX(0); }
.pk-row:focus-visible { outline: 2px solid var(--cover-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .pk-row, .pk-desc { transition: none; }
  /* No sliding: the arrow stays put; the row still darkens. */
  .pk-arrow span { transition: none; }
  .pk-arrow span + span { display: none; }
  .pk-row:is(:hover, :focus-visible) .pk-arrow span:first-child { transform: none; }
}
/* Phones: description below the title, arrow stays on the right. */
@media (max-width: 620px) {
  .pk { --pk-box: 40px; }
  .pk-row { grid-template-columns: minmax(0, 1fr) var(--pk-box); row-gap: 6px; }
  .pk-desc { grid-row: 2; }
  .pk-arrow { grid-column: 2; grid-row: 1 / 3; }
}

/* ---------- Ablauf timeline (design: zetac-ablauf-timeline.html), Projekte page ----------
   Three steps joined by a thin gold line; on hover a step's gold circle lifts 4px
   and lightens. The line and the text stay still. Page-specific band: see below. */
.process-panel {
  --process-circle: 56px;
  --process-gap: clamp(24px, 3vw, 48px);
  border-radius: 28px;
  background: var(--cover-navy);
  color: #fffdf8;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px);
}
.process-panel h2 {
  margin: 0 0 clamp(32px, 5vw, 64px);
  text-align: center;
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--process-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.process-step { position: relative; text-align: center; }
.process-icon {
  position: relative;      /* above the line */
  display: grid;
  place-items: center;
  width: var(--process-circle);
  height: var(--process-circle);
  margin: 0 auto;
  border-radius: 50%;
  background: var(--cover-gold);
  color: var(--cover-navy);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-step:hover .process-icon { transform: translateY(-4px); background: #f4d89e; }
/* Connector between two steps (decorative, aria-hidden; the <ol> carries the order):
   a thin gold line from this circle to the next, aligned with the circles' vertical
   centre, leaving --process-link-gap of space around each circle. The existing small
   arrow sits in the middle of the line on a navy backing.
   Distance between two circle centres = column width + column gap = 100% + gap. */
.process-step { --process-link-gap: 12px; }
.process-arrow {
  position: absolute;
  z-index: 1;
  top: calc(var(--process-circle) / 2);
  left: calc(50% + var(--process-circle) / 2 + var(--process-link-gap));
  width: calc(100% + var(--process-gap) - var(--process-circle) - 2 * var(--process-link-gap));
  height: 16px;
  display: grid;
  place-items: center;
  color: var(--cover-gold);
  transform: translateY(-50%);
}
.process-arrow::before {        /* the line */
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  margin-top: -0.5px;
  background: #a88c57;
  transform-origin: left center;
}
.process-arrow svg {
  position: relative;
  display: block;
  box-sizing: content-box;
  padding: 0 4px;
  background: var(--cover-navy);   /* interrupts the line so the arrow reads cleanly */
}
.process-step h3 {
  margin: clamp(14px, 1.6vw, 22px) 0 8px;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.process-step p {
  max-width: 30ch;
  margin: 0 auto;
  color: var(--process-text-soft, #e0e3e7);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  .process-icon { transition: none; }
  .process-step:hover .process-icon { transform: none; }   /* no lift; the fill still lightens */
}
/* Phones: steps stacked, line runs down through the circles. */
@media (max-width: 600px) {
  .process-panel { --process-circle: 48px; --process-gap: 28px; }
  .process-panel h2 { text-align: left; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step {
    display: grid;
    grid-template-columns: var(--process-circle) minmax(0, 1fr);
    column-gap: 16px;
    text-align: left;
  }
  .process-icon { grid-row: 1 / 3; align-self: start; margin: 0; }
  .process-step h3 { margin: 10px 0 4px; }
  .process-step p { margin: 0; max-width: none; }
  /* Vertical connector: from below this circle down to just above the next one
     (next circle top = this step's bottom + gap). Arrow points down. */
  .process-arrow {
    top: calc(var(--process-circle) + var(--process-link-gap));
    left: calc(var(--process-circle) / 2);
    width: 16px;
    height: calc(100% + var(--process-gap) - var(--process-circle) - 2 * var(--process-link-gap));
    transform: translateX(-50%);
  }
  .process-arrow::before {
    top: 0;
    bottom: 0;
    left: 50%;
    right: auto;
    width: 1px;
    height: auto;
    margin: 0 0 0 -0.5px;
    transform-origin: center top;
  }
  .process-arrow svg { padding: 4px 0; transform: rotate(90deg); }
}

/* Projekte page: off-white overview, then the timeline as a navy band that spans the
   full viewport width with all four corners rounded, then the app grid and the web
   project carousel on the same off-white. */
.pk-page { background: var(--cover-cream); }
.process--projekte {
  border-radius: var(--process-radius);
  background: var(--cover-navy);
  color: #fffdf8;
}
/* Inner wrapper: centred, padded, straight edges (the band itself is the navy). */
.process--projekte .process-panel {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  border-radius: 0;
  background: none;
}

/* Entrance (once, via site.js [data-reveal] on the .process-reveal wrapper; .reveal-pending only with JS and without
   reduced motion): the navy band opens from a narrow horizontal band at its vertical
   centre — top edge up, bottom edge down, full width throughout — via clip-path
   (~1400ms ease-in-out). clip-path doesn't affect layout, so the final height is
   reserved from the start. Heading and steps fade in during the second half; then
   the connecting lines draw left to right (top to bottom on phones), one after the
   other, each arrow appearing as its line passes it. Nothing is scaled. */
.process--projekte {
  --process-radius: clamp(20px, 3vw, 32px);
  --process-open: 1.4s;
  --process-line: 0.55s;
}
.reveal-pending > .process--projekte {
  clip-path: inset(calc(50% - 3px) 0 round var(--process-radius));
}
.reveal-pending > .process--projekte .process-panel > h2,
.reveal-pending > .process--projekte .process-steps { opacity: 0; }
.reveal-pending > .process--projekte .process-arrow::before { transform: scaleX(0); }
.reveal-pending > .process--projekte .process-arrow svg { opacity: 0; }
.reveal-pending.is-revealed > .process--projekte {
  clip-path: inset(0 0 round var(--process-radius));
  transition: clip-path var(--process-open) cubic-bezier(0.65, 0, 0.35, 1);
}
.reveal-pending.is-revealed > .process--projekte .process-panel > h2,
.reveal-pending.is-revealed > .process--projekte .process-steps {
  opacity: 1;
  transition: opacity calc(var(--process-open) / 2) ease calc(var(--process-open) / 2);
}
.process--projekte .process-step:nth-child(1) { --link-delay: var(--process-open); }
.process--projekte .process-step:nth-child(2) { --link-delay: calc(var(--process-open) + var(--process-line)); }
.reveal-pending.is-revealed > .process--projekte .process-arrow::before {
  transform: none;
  transition: transform var(--process-line) cubic-bezier(0.45, 0, 0.55, 1) var(--link-delay);
}
.reveal-pending.is-revealed > .process--projekte .process-arrow svg {
  opacity: 1;
  transition: opacity 0.25s ease calc(var(--link-delay) + var(--process-line) * 0.4);
}
@media (max-width: 600px) {
  .reveal-pending > .process--projekte .process-arrow::before { transform: scaleY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-pending > .process--projekte { clip-path: none; }
  .reveal-pending > .process--projekte .process-panel > h2,
  .reveal-pending > .process--projekte .process-steps,
  .reveal-pending > .process--projekte .process-arrow svg { opacity: 1; }
  .reveal-pending > .process--projekte .process-arrow::before { transform: none; }
}

/* Sections below the timeline: edges line up with the overview above. */
.pj-section {
  --pj-inset: calc(var(--cover-margin) + var(--cover-pad));
  max-width: calc(var(--max) + 2 * var(--pj-inset));
  margin-inline: auto;
  padding: clamp(48px, 6vw, 88px) var(--pj-inset) 0;
  color: var(--cover-navy);
  scroll-margin-top: calc(var(--cover-head) + 24px);   /* clear the fixed navbar on #apps / #webprojekte */
}
main.pk-page > .pj-section:last-child { margin-bottom: 0; padding-bottom: clamp(64px, 8vw, 120px); }
.pj-heading {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.pj-section h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pj-section p {
  margin: 0 0 16px;
  color: #53585f;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.5;
}
.pj-section .pk-contact { margin-bottom: 0; }

/* Unsere Apps: 2 × 2 grid; one column on phones. */
.pj-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(16px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Phone area: no coloured panel, the phone sits on the page's ivory background.
   --pj-panel-h only sets the phone size (as tall as the former panel allowed after
   padding and the controls row); the area itself is as tall as phone + controls. */
.pj-app-panel {
  --pj-panel-h: clamp(440px, 44vw, 620px);
  --pj-panel-pad: clamp(18px, 2vw, 28px);
  --pj-ctrl-h: 58px;          /* controls row (44px buttons) + gap above it */
  display: flex;
  justify-content: center;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.pj-appc {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
/* Phone frame: navy outline, rounded, soft shadow. Stays still while the screenshots
   slide inside it. */
.pj-phone {
  flex: none;
  width: min(calc((var(--pj-panel-h) - 2 * var(--pj-panel-pad) - var(--pj-ctrl-h)) / 2), 100%);
  aspect-ratio: 1 / 2;
  overflow: hidden;
  border: 4px solid var(--cover-navy);
  border-radius: clamp(20px, 2.2vw, 30px);
  background: #fffaf2;
  box-shadow: 0 18px 32px -18px rgba(25, 36, 50, 0.45);
}
/* Track: one slide per screen width, native horizontal scroll-snap. Each screenshot
   fills the width from the top at its own proportions; extra height is clipped, a
   shorter one continues in the app's page colour (--app-bg). */
.pj-appc-track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.pj-appc-track::-webkit-scrollbar { display: none; }
.pj-appc-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.pj-appc-track.is-dragging .pj-zoom { cursor: grabbing; }
.pj-appc-track:focus-visible { outline: 3px solid var(--cover-gold); outline-offset: -3px; }
.pj-appc-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--app-bg, #fff);
}
.pj-appc-slide .pj-zoom { display: block; width: 100%; cursor: zoom-in; }
.pj-appc-slide img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
/* [←] [dots] [→] centred below the phone. */
.pj-appc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin-top: calc(var(--pj-ctrl-h) - 44px);
}
.pj-appc-dots .pw-dot::before { background: rgba(25, 36, 50, 0.25); }
.pj-appc-dots .pw-dot:hover::before { background: rgba(25, 36, 50, 0.5); }
.pj-appc-dots .pw-dot[aria-current="true"]::before { background: var(--cover-navy); }
@media (max-width: 700px) {
  .pj-apps { grid-template-columns: 1fr; }
  .pj-app-panel { --pj-panel-h: clamp(460px, 128vw, 580px); }
}

/* Entrance (once per card, via site.js [data-reveal]; .reveal-pending only with JS
   and without reduced motion). Each card moves as one unit: left column (odd cards)
   from 80px left, right column (even cards) from 80px right, fading in over ~1400ms
   with a gentle ease-out. Both cards of a row enter the viewport together, so each
   row triggers on its own; the right card follows 120ms later. Phones: one column,
   still alternating, 30px, no delay. `translate` doesn't affect layout. */
#apps { overflow-x: clip; }   /* the offsets never cause sideways scroll */
.pj-app {
  --pj-shift: 80px;
  --pj-enter: 1.4s;
}
.pj-app.reveal-pending { opacity: 0; translate: calc(-1 * var(--pj-shift)) 0; }
.pj-app.reveal-pending:nth-child(even) { translate: var(--pj-shift) 0; }
.pj-app.reveal-pending.is-revealed {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity var(--pj-enter) cubic-bezier(0.25, 0.1, 0.25, 1),
    translate var(--pj-enter) cubic-bezier(0.22, 1, 0.36, 1);
}
.pj-app.reveal-pending.is-revealed:nth-child(even) { transition-delay: 120ms; }
@media (max-width: 700px) {
  .pj-app { --pj-shift: 30px; }
  .pj-app.reveal-pending.is-revealed:nth-child(even) { transition-delay: 0s; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-app.reveal-pending { opacity: 1; translate: none; }
}

/* Unsere Webprojekte: text left, carousel right; stacked (text first) on narrow screens. */
.pj-web {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.pj-section.pj-web::before {
  content: '';
  grid-column: 1 / -1;
  height: 1px;
  margin-bottom: clamp(8px, 2vw, 24px);
  background: #ded6c9;
}
.pj-web .pj-heading { margin-bottom: clamp(16px, 2vw, 24px); }
@media (max-width: 900px) {
  .pj-web { grid-template-columns: 1fr; }
}
/* Browser mockup: slim toolbar with macOS traffic lights, screenshot flush with both
   edges below it (no inner padding). */
.pj-browser {
  /* Whole-pixel width, so slides (and the slide offsets) land on full pixels. */
  width: round(down, 100%, 1px);
  overflow: hidden;
  border: 1px solid #ded6c9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(25, 36, 50, 0.06), 0 18px 40px -24px rgba(25, 36, 50, 0.35);
}
.pj-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-bottom: 1px solid #ded6c9;
  background: #f3eee5;
}
.pj-browser-bar span {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.pj-browser-bar span:nth-child(2) { background: #febc2e; }
.pj-browser-bar span:nth-child(3) { background: #28c840; }
/* Each screenshot is shown whole at width 100% / height auto (its own proportions:
   no fixed ratio, no object-fit, no cropping). The script sets the window's height to
   the current slide, with a short transition when slides differ in height. */
.pj-viewport {
  overflow: hidden;
  background: #fff;
  touch-action: pan-y;
  transition: height 0.45s var(--ease);
}
.pj-viewport:focus-visible { outline: 2px solid var(--cover-navy); outline-offset: -2px; }
.pj-track {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.45s var(--ease);
}
.pj-slide { flex: 0 0 100%; min-width: 0; }
.pj-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.pj-zoom img { display: block; width: 100%; height: auto; }
.pj-zoom:focus-visible { outline: 3px solid var(--cover-gold); outline-offset: -3px; }

/* Lightbox: the screenshot as large as the window allows (full width up to its own
   size); tall screenshots scroll inside the dialog. */
.pj-lightbox {
  width: min(1600px, 94vw);
  max-width: none;
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.pj-lightbox::backdrop { background: rgba(16, 25, 35, 0.78); }
.pj-lightbox-figure { margin: 0; }
.pj-lightbox-figure img { display: block; width: 100%; height: auto; }
.pj-lightbox-figure figcaption {
  padding: 10px 16px 12px;
  border-top: 1px solid #ded6c9;
  color: var(--cover-navy);
  font-size: 15px;
}
/* Fixed to the screen corner (the dialog is in the top layer), so it stays visible
   while a tall or wide screenshot is scrolled. */
.pj-lightbox-close {
  position: fixed;
  top: max(12px, calc(4vh - 6px));
  right: max(12px, calc(3vw - 6px));
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cover-navy);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.pj-lightbox-close:hover { background: #2a3a4f; }
.pj-lightbox-close:focus-visible { outline: 3px solid var(--cover-gold); outline-offset: 2px; }
/* Phones: show the screenshot at a readable size and let it be panned. */
@media (max-width: 700px) {
  .pj-lightbox-figure img { width: 900px; max-width: none; }
  .pj-lightbox-figure figcaption { position: sticky; left: 0; width: min(94vw, 900px); }
}
@media (prefers-reduced-motion: reduce) {
  .pj-viewport { transition: none; }
}

/* Lightbox gallery (projekte-web.html, .pj-lightbox--gallery): full-screen dialog,
   image centred and fitted to the free space at its own proportions (never upscaled
   beyond its real size, --lb-w); gold arrows on the sides, label + counter below.
   Phones: image full width, arrows move into the bottom bar beside the counter. */
html.has-lightbox { overflow: hidden; }
.pj-lightbox--gallery[open] {
  --lb-pad: clamp(12px, 3vw, 40px);
  --lb-bar: 56px;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr) var(--lb-bar);
  grid-template-areas: "prev stage next" "bar bar bar";
  align-items: center;
  column-gap: clamp(10px, 2vw, 28px);
  padding: calc(var(--lb-pad) + 44px) var(--lb-pad) var(--lb-pad);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.pj-lightbox--gallery::backdrop { background: rgba(16, 25, 35, 0.9); }
.pj-lb-stage {
  grid-area: stage;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  touch-action: pan-y pinch-zoom;   /* horizontal swipes go to the gallery */
  /* One definite track, so the image's max-height: 100% resolves (tall phone screenshots). */
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}
.pj-lightbox--gallery .pj-lb-stage img {
  width: auto;
  height: auto;
  max-width: min(100%, var(--lb-w, 100%));
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.15s ease;
}
.pj-lightbox--gallery .pj-lb-stage img.is-switching { opacity: 0; }
.pj-lb-prev { grid-area: prev; }
.pj-lb-next { grid-area: next; }
.pj-lightbox--gallery .pj-lb-nav { width: 52px; height: 52px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); }
.pj-lightbox--gallery .pj-lb-nav:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pj-lb-bar {
  grid-area: bar;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.pj-lb-label { margin: 0; font-size: 15px; color: #e0e3e7; }
.pj-lb-count {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cover-gold);
  color: var(--cover-navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.pj-lightbox--gallery .pj-lightbox-close {
  top: var(--lb-pad);
  right: var(--lb-pad);
  background: var(--cover-navy);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.3);
}
@media (max-width: 700px) {
  .pj-lightbox--gallery[open] {
    --lb-bar: 64px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "stage stage stage" "prev bar next";
  }
  .pj-lightbox--gallery .pj-lb-stage img { width: auto; height: auto; max-width: 100%; }   /* fills the width (landscape) or the height (tall phone shots), never distorted */
  .pj-lightbox--gallery .pj-lb-nav { width: 46px; height: 46px; }
  .pj-lb-bar { flex-direction: column; gap: 4px; }
  .pj-lb-label { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .pj-lightbox--gallery .pj-lb-stage img { transition: none; }
}
.pj-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}
.pj-section .pj-count { margin: 0; line-height: 1; min-width: 3.5em; text-align: center; font-variant-numeric: tabular-nums; color: var(--cover-navy); }
.pj-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9px;
  background: var(--cover-gold);
  color: var(--cover-navy);
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.pj-nav:hover { background: #f4d89e; }
.pj-nav:focus-visible { outline: 2px solid var(--cover-navy); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .pj-track, .pj-nav { transition: none; }
}


/* ---------- Leistungen page (services.html) ----------
   Three sections, top to bottom: the three service cards, Onlineshop hero, App hero.
   One warm off-white base behind all three sections (no bands, tints or overlays),
   so the sections run into each other without visible edges.
   Heroes: copy on the left; on the right a visual that bleeds to the viewport edge.
   Each visual is two images of identical size stacked in one box (photo + device
   cut-out, assets/leistungen/), so the device always lines up with its photo.
   All classes are prefixed .lx- and only used on this page. */
.page-leistungen { background: var(--cover-cream); }
.lx {
  --lx-navy: var(--cover-navy);
  --lx-band: var(--cover-cream);   /* page base; also fills the cards' cut-out corners */
  --lx-sand: #e9e1d4;
  --lx-gold-ink: #8a6420;
  --lx-ease: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  /* One shared container for cards and both showcases: same left/right guides. */
  --lx-max: 1440px;
  --lx-pad: clamp(20px, 3.5vw, 48px);
  /* Space the floating navbar takes at the top of the page. */
  --lx-head-space: calc(var(--cover-margin) + var(--cover-pad) + var(--cover-head) + clamp(16px, 2vw, 28px));
  color: var(--lx-navy);
}
.lx .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Heroes */
/* Shared container (cards + showcases): content up to --lx-max, side padding --lx-pad. */
.lx-services .wrap,
.lx-hero {
  max-width: calc(var(--lx-max) + 2 * var(--lx-pad));
  margin-inline: auto;
  padding-inline: var(--lx-pad);
}
/* Shared desktop grid for both showcases inside that container, 12 columns. Onlineshop: photo 1–7, text 8–12. App: text 1–5,
   photo 6–12. So the Onlineshop text column and the App photo end on the same right
   edge (the container's content edge). */
.lx-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(24px, 3.5vw, 56px);
  align-items: center;
  padding-block: clamp(12px, 1.6vw, 24px);
  scroll-margin-top: calc(var(--cover-head) + 16px);   /* jumps from the cards clear the navbar */
}
.lx-hero-copy {
  display: grid;
  justify-items: start;
  padding-block: 48px;
}
.lx-hero--app .lx-hero-copy { grid-column: 1 / span 5; }
.lx-hero--app .lx-visual { grid-column: 6 / span 7; }
.lx-hero--shop .lx-visual { grid-column: 1 / span 7; }
.lx-hero--shop .lx-hero-copy { grid-column: 8 / span 5; }
.lx-hero-copy h1,
.lx-hero-copy h2 {
  font-size: clamp(2.5rem, 4.6vw, 4.75rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
  text-wrap: pretty;          /* wraps naturally to the column width */
}
.lx-hero-copy p {
  margin-top: clamp(20px, 2.4vw, 32px);
  max-width: 27ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.45;
  color: #2b3542;
}
/* Gold project button (navy text, navy-gold arrow that nudges forward on hover). */
.lx-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 44px);
  min-height: 56px;
  padding: 12px 26px;
  border-radius: 10px;
  background: var(--cover-gold);
  color: var(--lx-navy);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.lx-btn-arrow { transition: transform 0.35s var(--ease); }
.lx-btn:hover { background: #e4b85f; }
.lx-btn:hover .lx-btn-arrow { transform: translateX(4px); }
.lx-btn:focus-visible { outline: 2px solid var(--lx-navy); outline-offset: 3px; }

.lx-visual { position: relative; aspect-ratio: 1086 / 1024; }
.lx-hero--app .lx-visual { aspect-ratio: 976 / 1024; }
/* Onlineshop: photo left, text right. The visual comes first on every width (CSS
   order; the heading stays first in the HTML). The image is never flipped, so the
   shop text on the laptop stays readable. */
.lx-hero--shop .lx-visual { order: -1; aspect-ratio: 1050 / 1024; }
/* Both images: single flat files, no masks or fades, rounded corners. The App image's
   cream area left of its diagonal photo edge matches the page background. */
.lx-visual .lx-shop-img,
.lx-visual .lx-app-img {
  object-fit: cover;
  border-radius: 18px;
}

/* Service cards */
.lx-services {
  padding: var(--lx-head-space) 0 clamp(16px, 2.4vw, 36px);
}
/* Last section: a normal gap to the footer instead of the global --space. */
main.lx > .lx-hero:last-child { margin-bottom: clamp(40px, 5vw, 72px); }
.lx-services h1 {
  font-size: clamp(2.75rem, 4.8vw, 4.5rem);
  letter-spacing: -0.06em;
  line-height: 1.1;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.lx-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lx-card {
  --lx-r: 16px;
  --lx-notch: 52px;           /* cut-out corner; the gold box sits inside it */
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(260px, 20vw, 284px);
  padding: 26px 26px 28px;
  border-radius: var(--lx-r);
  background: #fff;
}
.lx-card--sand { background: var(--lx-sand); }
.lx-card--navy { background: var(--lx-navy); color: #fffdf8; }
.lx-card-icon { color: var(--lx-gold-ink); margin-bottom: 4px; }
.lx-card--navy .lx-card-icon { color: var(--cover-gold); }
.lx-card h3 {
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.lx-card p {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #59544d;
}
.lx-card--navy p { color: #c9ced6; }

/* "Mehr erfahren": the whole card is the click target (stretched ::before). */
.lx-card-link {
  margin-top: auto;
  padding-top: 32px;
  padding-right: var(--lx-notch);
  font-size: 0.9375rem;
  text-decoration: none;
  text-underline-offset: 5px;
}
.lx-card-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--lx-r);
}
.lx-card-link:hover { text-decoration-line: underline; }
.lx-card-link:focus-visible { outline: none; }
.lx-card-link:focus-visible::before { outline: 2px solid var(--lx-navy); outline-offset: 3px; }

/* Cut-out corner in the band colour, with soft inner curves where it meets the card. */
.lx-card-corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--lx-notch);
  height: var(--lx-notch);
  padding: 10px 0 0 10px;
  border-top-left-radius: 14px;
  background: var(--lx-band);
}
.lx-card-corner::before,
.lx-card-corner::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle at 0 0, transparent 11.5px, var(--lx-band) 12px);
}
.lx-card-corner::before { right: 0; bottom: 100%; }
.lx-card-corner::after { left: -12px; bottom: 0; }
.lx-card-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background: var(--cover-gold);
  color: var(--lx-navy);
  font-size: 18px;
  overflow: hidden;
}
/* On hover the arrow slides out to the right while an identical one slides in. */
.lx-card-arrow span { position: absolute; transition: transform var(--lx-ease); }
.lx-card-arrow span + span { transform: translateX(-42px); }
.lx-card-link:is(:hover, :focus-visible) .lx-card-arrow span:first-child { transform: translateX(42px); }
.lx-card-link:is(:hover, :focus-visible) .lx-card-arrow span + span { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .lx-btn-arrow, .lx-card-arrow span { transition: none; }
  .lx-card-arrow span + span { display: none; }
  .lx-card-link:is(:hover, :focus-visible) .lx-card-arrow span:first-child { transform: none; }
}

/* Tablets and phones: one column, cards stacked. App: text then visual; Onlineshop:
   visual then text. The grid container drops its padding; copy and visuals carry the
   gutter themselves. */
@media (max-width: 900px) {
  .lx-hero { grid-template-columns: minmax(0, 1fr); padding: 8px 0 0; }
  .lx-hero .lx-hero-copy,
  .lx-hero .lx-visual { grid-column: 1; }
  .lx-hero-copy { padding: 40px var(--lx-pad) 32px; }
  .lx-hero-copy h1,
  .lx-hero-copy h2 { font-size: clamp(2.25rem, 8vw, 3.5rem); }
  .lx-cards { grid-template-columns: minmax(0, 1fr); }
  .lx-card { min-height: 236px; }
  .lx-visual { width: auto; margin-inline: var(--lx-pad); }
  .lx-hero--shop .lx-visual { margin-top: 8px; }
  .lx-hero--shop .lx-hero-copy { padding: 28px var(--lx-pad) 32px; }
  .lx-visual .lx-shop-img,
  .lx-visual .lx-app-img { border-radius: 14px; }
}

/* ---------- Über uns (about.html) ----------
   Homepage-style cover with its own photo, then the group photo and three profiles
   on the warm off-white base. All classes besides .cover are prefixed .ab-. */
.page-about { background: var(--cover-cream); }
.cover--about { min-height: max(560px, 86vh); min-height: max(560px, 86svh); }
.cover--about::before {
  background-image: url("assets/ueber-uns/hero-studio.jpg");
  background-position: center 40%;
}
/* Subtle, even overlay (the photo has no calm side), slightly deeper behind the text. */
.cover--about::after {
  background:
    linear-gradient(180deg, rgba(16, 25, 35, 0.5) 0%, rgba(16, 25, 35, 0.25) 40%, rgba(16, 25, 35, 0.7) 100%),
    linear-gradient(90deg, rgba(16, 25, 35, 0.55), rgba(16, 25, 35, 0.1) 75%);
}
.cover--about h1 { max-width: 11ch; }
@media (max-width: 600px) {
  .cover--about::after {
    background: linear-gradient(180deg, rgba(16, 25, 35, 0.68) 0%, rgba(16, 25, 35, 0.35) 40%, rgba(16, 25, 35, 0.8) 100%);
  }
}

.ab {
  --ab-inset: calc(var(--cover-margin) + var(--cover-pad));
  color: var(--cover-navy);
}
.ab-group,
.ab-team {
  max-width: calc(var(--max) + 2 * var(--ab-inset));
  margin-inline: auto;
  padding-inline: var(--ab-inset);
}
.ab-group { padding-top: clamp(32px, 5vw, 72px); }
.ab-group-photo {
  margin: 0;
  overflow: hidden;
  border-radius: clamp(14px, 2vw, 24px);
  aspect-ratio: 16 / 9;
  background: #e9e1d4;
}
.ab-group-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ab-team { padding-top: clamp(56px, 7vw, 104px); }
main.ab > .ab-team:last-child { margin-bottom: 0; padding-bottom: clamp(64px, 8vw, 120px); }
.ab-team h2 {
  margin: 0 0 clamp(24px, 3vw, 40px);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.ab-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 48px) clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ab-portrait {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
  border-radius: 16px;
  background: #e9e1d4;
}
.ab-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab-card h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ab-role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 6px 0 12px;
  color: #8a6420;                /* gold ink: readable on the off-white (AA) */
  font-size: 15px;
  line-height: 1.4;
}
.ab-bio {
  margin: 0;
  max-width: 46ch;
  color: #4a4f57;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
}
/* Unconfirmed copy: small sand tag after the role (remove it once the text is final). */
.ab-ph {
  padding: 2px 8px;
  border-radius: 999px;
  background: #ece3d3;
  color: #5c4a2a;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.ab-ph-text { color: #5d636b; }
@media (max-width: 760px) {
  .ab-cards { grid-template-columns: minmax(0, 1fr); }
  .ab-card { max-width: 480px; }
}


/* ---------- Webprojekte (projekte-web.html) ----------
   Warm-white page, navy type, gold accents. Real screenshots in thin frames with a
   soft shadow; images keep their own proportions (width 100%, height auto), so
   nothing is stretched or cropped. Desktop: phone + product page side by side;
   phones: everything stacks. */
.page-web { background: var(--cover-cream); }
.pw {
  --pw-inset: calc(var(--cover-margin) + var(--cover-pad));
  --pw-line: #ded6c9;
  --pw-gold-text: #8a6116;   /* darker gold for text: readable on the cream background */
  --pw-shadow: 0 1px 2px rgba(25, 36, 50, 0.06), 0 18px 40px -22px rgba(25, 36, 50, 0.35);
  max-width: calc(var(--max) + 2 * var(--pw-inset));
  margin-inline: auto;
  /* Clear the fixed navbar; edges line up with the logo and the nav box. */
  padding: calc(var(--cover-margin) + var(--cover-pad) + var(--cover-head) + clamp(24px, 2.4vw, 40px))
           var(--pw-inset) clamp(64px, 8vw, 120px);
  color: var(--cover-navy);
}

.pw-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 0;
  list-style: none;
  font-size: 15px;
}
.pw-crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--cover-navy); }
.pw-crumbs a { color: var(--cover-navy); text-decoration: none; }
.pw-crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pw-crumbs [aria-current] { color: var(--pw-gold-text); }

/* Intro: title left | thin vertical rule | lead + tags right. Stacked on narrow screens. */
.pw-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1px minmax(0, 1fr);
  column-gap: clamp(32px, 4.5vw, 80px);
  align-items: center;
}
.pw-head::before {        /* the vertical rule, in the middle column */
  content: '';
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  background: var(--pw-line);
}
.pw-title {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(36px, 3.3vw, 60px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.pw-intro { grid-column: 3; grid-row: 1; }
.pw-lead {
  max-width: 22ch;
  margin: 0;
  color: var(--cover-navy);
  font-size: clamp(18px, 1.45vw, 25px);
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.pw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: clamp(16px, 1.6vw, 22px) 0 0;
  padding: 0;
  list-style: none;
}
.pw-tags li {
  padding: 7px 20px;
  border: 1px solid #ddd2c0;
  border-radius: 999px;
  background: #f1ebdf;
  color: var(--cover-navy);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.5;
}
@media (max-width: 900px) {
  .pw-head { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .pw-head::before { display: none; }
  .pw-intro { grid-column: 1; grid-row: 2; }
}

/* Frames */
.pw-shot { margin: 0; }
.pw-shot img { display: block; width: 100%; height: auto; }
/* Browser mockup: the frame's height follows the image; the screenshot spans the full
   inner width at its own aspect ratio (no fixed height, object-fit or offsets). */
.pw-browser {
  overflow: hidden;
  border: 1px solid var(--pw-line);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: var(--pw-shadow);
}
.pw-browser img { max-width: 100%; margin: 0; object-fit: fill; transform: none; }
/* Slim toolbar with macOS traffic lights (close / minimise / zoom). */
.pw-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-bottom: 1px solid var(--pw-line);
  background: #f3eee5;
}
.pw-browser-bar span {
  flex: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}
.pw-browser-bar span:nth-child(2) { background: #febc2e; }
.pw-browser-bar span:nth-child(3) { background: #28c840; }
.pw-shot--hero { margin-top: clamp(28px, 2.6vw, 40px); }
/* Show the shop's navigation + hero only: crop the screenshot at the hero's lower
   edge (y = 1132 of 1631), scaled as a whole, never stretched. */
.pw-shot--hero .pw-browser img { aspect-ratio: 2852 / 1132; object-fit: cover; object-position: top; }

/* Projektumfang ("Was wir umgesetzt haben"): small gold label, heading, subtitle; eight
   numbered cards in a 2-column grid (one column on phones). Card: gold number and a
   navy outline icon on the top row, then title and description, so the icon never
   overlaps the text. Hover: stronger gold border and a 3px lift. */
.pw-scope { margin-top: clamp(56px, 7vw, 104px); }
.pw-eyebrow {
  margin: 0 0 12px;
  color: var(--pw-gold-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pw-scope-sub {
  margin: clamp(10px, 1.2vw, 16px) 0 0;
  max-width: 48ch;
  color: #53585f;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
}
.pw-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin: clamp(28px, 3.5vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.pw-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto 1fr;
  column-gap: 16px;
  padding: clamp(22px, 2.6vw, 36px);
  border: 1px solid var(--pw-line);
  border-radius: 18px;
  background: #fbf9f4;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pw-card:hover { transform: translateY(-3px); border-color: #c9a35a; }
.pw-card-num {
  align-self: center;
  color: #b07d1f;   /* same gold as before; ≥ 3:1 on cream at this large semibold size */
  font-size: clamp(20px, 1.5vw, 24px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.pw-card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--pw-line);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--cover-navy);
}
.pw-card-icon svg { width: 22px; height: 22px; }
.pw-card-title {
  grid-column: 1 / -1;
  margin: clamp(16px, 1.8vw, 24px) 0 8px;
  overflow-wrap: break-word;
  hyphens: manual;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.pw-card-text {
  grid-column: 1 / -1;
  max-width: 46ch;
  color: #3d4652;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
}
.pw-scope-cta { margin: clamp(28px, 3.5vw, 44px) 0 0; }
.pw-cta--out:is(:hover, :focus-visible) .pw-cta-arrow { transform: translate(3px, -3px); }
@media (max-width: 700px) {
  .pw-cards { grid-template-columns: minmax(0, 1fr); }
  .pw-card { border-radius: 14px; }
}

/* Entrance (once, via site.js [data-reveal]; .reveal-pending only with JS and without
   reduced motion): heading block fades up first; each card fades up 30px over ~1s
   (smooth ease-out, no overshoot). A card is only revealed when it scrolls into view;
   cards entering together start 160ms apart (data-reveal-stagger on .pw-cards), after
   a short 150ms lead so the heading goes first. Hover uses `transform`, the entrance
   uses `translate`, so they never fight. */
.pw-scope { --pw-rise: 30px; --pw-enter: 1s; }
.pw-scope-head.reveal-pending,
.pw-card.reveal-pending { opacity: 0; translate: 0 var(--pw-rise); }
.pw-scope-head.reveal-pending { translate: 0 20px; }
.pw-scope-head.reveal-pending.is-revealed {
  opacity: 1;
  translate: 0 0;
  transition: opacity var(--pw-enter) cubic-bezier(0.25, 0.1, 0.25, 1), translate var(--pw-enter) cubic-bezier(0.22, 1, 0.36, 1);
}
.pw-card.reveal-pending.is-revealed {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity var(--pw-enter) cubic-bezier(0.25, 0.1, 0.25, 1) 0.15s,
    translate var(--pw-enter) cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .pw-scope-head.reveal-pending,
  .pw-card.reveal-pending { opacity: 1; translate: none; }
  .pw-card, .pw-card.reveal-pending.is-revealed { transition: border-color 0.3s var(--ease); }
  .pw-card:hover { transform: none; }   /* no lift; the border still turns gold */
}

/* Vom ersten Eindruck bis zur Produktauswahl: phone left, product page right.
   Column ratio ≈ phone (390 : 844) and browser (2400 : 1359 + bar) at equal height. */
.pw-views { margin-top: clamp(56px, 7vw, 104px); }
.pw-views-grid {
  display: grid;
  grid-template-columns: minmax(0, 28fr) minmax(0, 100fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: center;
  margin-top: clamp(24px, 3vw, 40px);
}
.pw-phone {
  overflow: hidden;
  padding: 6px;
  border-radius: clamp(26px, 3vw, 40px);
  background: var(--cover-navy);
  box-shadow: var(--pw-shadow);
}
/* Phone gallery: the screen has the iPhone screenshot proportions (1179 : 2556) and
   clips the slides to its rounded inner corners. One slide per screen width, native
   horizontal scroll-snap; each slide scrolls vertically if a screenshot is taller. */
.pw-gallery {
  overflow: hidden;
  border-radius: clamp(20px, 2.4vw, 34px);
  background: #fff;
  aspect-ratio: 1179 / 2556;
}
.pw-gallery-track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.pw-gallery-track::-webkit-scrollbar { display: none; }
.pw-gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.pw-gallery-track:focus-visible { outline: 3px solid var(--cover-gold); outline-offset: -3px; border-radius: inherit; }
.pw-gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;            /* only scrolls when a screenshot is taller than the screen */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: none;
}
.pw-gallery-slide::-webkit-scrollbar { display: none; }
.pw-gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}
/* Pagination dots below the phone (24px hit area, 8px dot). */
/* One centered row below the phone: [←] [dots] [→]. */
.pw-phone-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.pw-phone-nav { flex: none; width: 40px; height: 40px; }
.pw-dots {
  display: flex;
  justify-content: center;
  gap: 0;
}
.pw-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.pw-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfc6b8;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pw-dot:hover::before { background: #a99f90; }
.pw-dot[aria-current="true"]::before { background: var(--cover-navy); transform: scale(1.15); }
.pw-dot:focus-visible { outline: 2px solid var(--cover-navy); outline-offset: 0; border-radius: 50%; }
@media (prefers-reduced-motion: reduce) { .pw-dot::before { transition: none; } }

.pw-cta-row { margin: clamp(40px, 5vw, 72px) 0 0; }
.pw-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pw-gold-text);
  font-size: clamp(20px, 1.8vw, 26px);
  text-decoration: none;
}
.pw-cta-arrow { transition: transform 0.25s var(--ease); }
.pw-cta:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.pw-cta:is(:hover, :focus-visible) .pw-cta-arrow { transform: translateX(4px); }
.pw-cta:focus-visible { outline: 2px solid var(--cover-navy); outline-offset: 4px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .pw-cta-arrow { transition: none; } }

@media (max-width: 760px) {
  .pw-views-grid { grid-template-columns: minmax(0, 1fr); }
  .pw-shot--phone { width: min(260px, 72%); justify-self: center; }
  .pw-browser { border-radius: 10px; }
  .pw-browser-bar { height: 26px; padding: 0 11px; gap: 7px; }
  .pw-browser-bar span { width: 10px; height: 10px; }
}

/* ---------- App-Projektseiten (projects/app-01…03.html) ----------
   Same page shell as projekte-web.html (.pw, .pw-head, .pw-cta). Both screenshots shown
   in full (width 100%, height auto) in the navy phone frame used on the Projekte page;
   side by side, stacked on phones. */
.pa-views { margin-top: clamp(56px, 7vw, 104px); }
.pa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 64px);
  margin-top: clamp(28px, 3.5vw, 48px);
  padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 64px);
  border-radius: 16px;
  background: #e6ddd0;
}
.pa-shot { display: grid; justify-items: center; align-content: start; gap: 18px; margin: 0; }
.pa-phone {
  width: min(320px, 100%);
  overflow: hidden;
  border: 4px solid var(--cover-navy);
  border-radius: clamp(20px, 2.2vw, 30px);
  background: var(--app-bg, #fff);
  box-shadow: 0 18px 32px -18px rgba(25, 36, 50, 0.45);
}
.pa-phone img { display: block; width: 100%; height: auto; }
.pa-shot figcaption { max-width: 32ch; text-align: center; color: #53585f; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.5; }
.pa-shot figcaption strong { display: block; color: var(--cover-navy); font-weight: 600; }
.pa-cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
/* Inline links so a wrapped label keeps its arrow right after the last word. */
.pa-cta-row .pw-cta { display: inline; }
.pa-cta-row .pw-cta-arrow { display: inline-block; margin-left: 8px; }
@media (max-width: 600px) {
  .pa-grid { grid-template-columns: minmax(0, 1fr); }
  .pa-phone { width: min(280px, 82%); }
}

/* Desktop carousel beside the phone (projekte-web.html): reuses the Projekte carousel
   track, controls and lightbox (.pj-*) inside the detail page's browser frame. */
.pw-desk-carousel .pw-browser { width: round(down, 100%, 1px); }   /* whole-pixel slides, no half-pixel blur */
.pw-desk-carousel .pj-viewport { border-radius: 0; }
.pw-desk-carousel .pj-track.is-dragging { transition: none; cursor: grabbing; }
.pw-desk-carousel .pj-zoom { cursor: zoom-in; }
.pw-desk-carousel .pj-zoom img { -webkit-user-drag: none; user-select: none; }
.pw-count { margin: 0; line-height: 1; min-width: 3.5em; text-align: center; font-variant-numeric: tabular-nums; color: var(--cover-navy); }

/* ---------- Kontakt (contact.html) ----------
   Ivory page; intro + contact details left, rounded form card right; stacked below
   900px. Edges line up with the navbar (same inset as the other subpages). */
.page-kontakt { background: var(--cover-cream); }
.kt {
  --kt-inset: calc(var(--cover-margin) + var(--cover-pad));
  --kt-line: #ddd3c2;
  --kt-gold-line: #e3c48a;
  --kt-field-border: #bfb6a8;
  --kt-error: #b3261e;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
  max-width: calc(var(--max) + 2 * var(--kt-inset));
  margin-inline: auto;
  padding: calc(var(--cover-margin) + var(--cover-pad) + var(--cover-head) + clamp(24px, 3vw, 48px))
           var(--kt-inset) clamp(64px, 8vw, 120px);
  color: var(--cover-navy);
}
.kt .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Left column */
.kt-intro { padding-top: clamp(8px, 2vw, 32px); }
.kt-eyebrow {
  margin: 0 0 clamp(16px, 2vw, 28px);
  color: #b8862c;
  font-size: clamp(15px, 1.25vw, 20px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.kt-title {
  font-size: clamp(40px, 4.7vw, 76px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.kt-lead {
  max-width: 34em;
  margin-top: clamp(18px, 2.4vw, 36px);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.5;
}
.kt-details {
  margin: clamp(28px, 3vw, 44px) 0 0;
  padding: clamp(28px, 3vw, 44px) 0 0;
  border-top: 1px solid var(--kt-gold-line);
  list-style: none;
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
}
.kt-details li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(16px, 2.2vw, 40px);
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.35;
}
.kt-details svg { display: block; }
.kt-details a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.kt-details a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Form card */
.kt-card {
  padding: clamp(22px, 2.6vw, 36px);
  border: 1px solid var(--kt-line);
  border-radius: 20px;
  background: #fdfbf7;
  box-shadow: 0 1px 2px rgba(25, 36, 50, 0.04), 0 18px 40px -28px rgba(25, 36, 50, 0.25);
}
.kt-card-title {
  margin-bottom: clamp(18px, 2vw, 26px);
  font-size: clamp(28px, 2.7vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.kt-form { display: grid; gap: clamp(16px, 1.6vw, 22px); }
.kt-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px); }
.kt-field { display: grid; gap: 8px; min-width: 0; }
.kt-field label { font-size: clamp(15px, 1.15vw, 18px); font-weight: 600; letter-spacing: -0.01em; }
.kt-opt { font-weight: 400; }
.kt-field input,
.kt-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--kt-field-border);
  border-radius: 8px;
  background: #fffdfa;
  color: var(--cover-navy);
  font: inherit;
  font-size: 16px;   /* ≥ 16px: no zoom on focus in iOS Safari */
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.kt-field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.kt-field input:hover,
.kt-field textarea:hover { border-color: #8f8679; }
.kt-field input:focus-visible,
.kt-field textarea:focus-visible {
  outline: none;
  border-color: var(--cover-navy);
  box-shadow: 0 0 0 3px rgba(237, 199, 123, 0.55);
}
.kt-field [aria-invalid="true"] { border-color: var(--kt-error); }
.kt-field [aria-invalid="true"]:focus-visible { box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.18); }
.kt-error { margin: 0; color: var(--kt-error); font-size: 14px; line-height: 1.4; }
.kt-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.kt-privacy { font-size: clamp(14px, 1.05vw, 16px); line-height: 1.55; color: #2c3644; }
.kt-privacy a { color: inherit; text-underline-offset: 3px; }
.kt-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: clamp(52px, 4vw, 60px);
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  background: var(--cover-gold);
  color: var(--cover-navy);
  font: inherit;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}
.kt-submit:hover { background: #f4d89e; }
.kt-submit:focus-visible { outline: 3px solid var(--cover-navy); outline-offset: 3px; }
.kt-submit-arrow { transition: transform 0.25s var(--ease); }
.kt-submit:is(:hover, :focus-visible) .kt-submit-arrow { transform: translateX(4px); }
.kt-submit[disabled] { cursor: progress; opacity: 0.75; }
.kt-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.5;
}
.kt-status.is-success { background: #eaf3e6; color: #24502a; border: 1px solid #b9d4b0; }
.kt-status.is-error   { background: #fbeceb; color: #8a1f18; border: 1px solid #e7bcb8; }
.kt-status.is-pending { background: #f3eee5; color: var(--cover-navy); border: 1px solid var(--kt-line); }
@media (prefers-reduced-motion: reduce) {
  .kt-submit, .kt-submit-arrow, .kt-field input, .kt-field textarea { transition: none; }
}
@media (max-width: 900px) {
  .kt { grid-template-columns: minmax(0, 1fr); }
  .kt-intro { padding-top: 0; }
}
@media (max-width: 560px) {
  .kt-row { grid-template-columns: minmax(0, 1fr); }
  .kt-card { border-radius: 16px; }
}

/* ---------- Unsere Apps (projekte-apps.html) ----------
   Same page shell as projekte-web.html (.pw, .pw-crumbs). Centred heading, then four
   app sections stacked vertically: phone carousel left, text right (one column on
   phones), separated by thin lines. Every phone has the same size; it sits directly
   on the ivory background with a soft shadow, no panel behind it. */
.ua { --ua-phone-w: 290px; }
.ua-top { margin: clamp(8px, 1.5vw, 20px) 0 clamp(32px, 4vw, 56px); text-align: center; }
.ua-title {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 76px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.ua-dot { color: var(--logo-gold, #d09d37); }
.ua-sub {
  margin: clamp(10px, 1.2vw, 16px) 0 0;
  color: #3d4652;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
}

.ua-list { max-width: 1120px; margin-inline: auto; overflow-x: clip; }   /* entrance offsets never cause sideways scroll */
.ua-app {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(48px, 6vw, 88px) 0;
}
.ua-app + .ua-app { border-top: 1px solid var(--pw-line); }
/* Direct links (#stockflow …) clear the fixed navbar. On narrow screens the script in
   projekte-apps.html refines this so the heading and intro (below the phone) are in view. */
.ua-app { scroll-margin-top: calc(var(--cover-margin) + var(--cover-head) + 8px); }

/* Phone: navy frame (as on the Projekte overview), fixed size for all four apps.
   Screenshots fill the screen width at their own proportions; a taller one scrolls
   vertically inside its slide, a shorter one continues in the app's colour (--app-bg).
   The screenshots already contain their own status bar where supplied, so the frame
   adds no status bar or Dynamic Island. */
.ua-media { display: flex; justify-content: center; }
.ua-carousel { display: flex; flex-direction: column; align-items: center; width: 100%; }
.ua-phone {
  width: min(var(--ua-phone-w), 100%);
  aspect-ratio: 1 / 2;
  overflow: hidden;
  border: 4px solid var(--cover-navy);
  border-radius: 32px;
  background: #fffaf2;
  box-shadow: 0 1px 2px rgba(25, 36, 50, 0.06), 0 24px 40px -22px rgba(25, 36, 50, 0.45);
}
.ua-track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.ua-track::-webkit-scrollbar { display: none; }
.ua-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.ua-track:focus-visible { outline: 3px solid var(--cover-gold); outline-offset: -3px; border-radius: 28px; }
.ua-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;            /* only scrolls when a screenshot is taller than the screen */
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scrollbar-width: none;
  background: var(--app-bg, #fff);
}
.ua-slide::-webkit-scrollbar { display: none; }
.ua-slide img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
/* [←] [dots] [→] centred below the phone; fixed height and dot area, so nothing shifts
   when the dots are added by the script. */
.ua-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin-top: 18px;
}
.ua-dots { min-width: 48px; }
.ua-dots .pw-dot::before { background: rgba(25, 36, 50, 0.25); }
.ua-dots .pw-dot:hover::before { background: rgba(25, 36, 50, 0.5); }
.ua-dots .pw-dot[aria-current="true"]::before { background: var(--cover-navy); }

/* Text column. */
.ua-head { display: flex; align-items: center; gap: clamp(16px, 1.8vw, 24px); }
.ua-logo {
  flex: none;
  width: clamp(64px, 6vw, 84px);
  height: clamp(64px, 6vw, 84px);
  border-radius: 22%;
  object-fit: cover;
  box-shadow: 0 10px 22px -14px rgba(25, 36, 50, 0.5);
}
.ua-name {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.ua-cat {
  display: inline-block;
  margin: 8px 0 0;
  padding: 3px 12px;
  border-radius: 6px;
  background: #ece4d6;
  color: var(--pw-gold-text);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}
.ua-intro {
  margin: clamp(20px, 2.2vw, 28px) 0 0;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.ua-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.ua-tags li {
  padding: 6px 16px;
  border: 1px solid #ddd2c0;
  border-radius: 999px;
  background: #f1ebdf;
  font-size: 15px;
  line-height: 1.5;
}
.ua-about {
  margin: clamp(24px, 2.6vw, 32px) 0 0;
  padding-top: clamp(20px, 2.2vw, 28px);
  border-top: 1px solid var(--pw-line);
  font-size: clamp(18px, 1.4vw, 21px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ua-desc {
  max-width: 60ch;
  margin: 10px 0 0;
  color: #3d4652;
  font-size: clamp(16px, 1.1vw, 18px);
  font-weight: 400;
  line-height: 1.6;
}

/* Closing band: navy, rounded, gold button to the contact page. */
.ua-close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  max-width: 1120px;
  margin: clamp(16px, 3vw, 40px) auto 0;
  padding: clamp(28px, 3.5vw, 44px) clamp(24px, 4vw, 56px);
  border-radius: 20px;
  background: var(--cover-navy);
  color: #fffdf8;
}
.ua-close-title {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ua-close-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 9px;
  background: var(--cover-gold);
  color: var(--cover-navy);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s var(--ease);
}
.ua-close-arrow { transition: transform 0.25s var(--ease); }
.ua-close-btn:hover { background: #f4d89e; }
.ua-close-btn:is(:hover, :focus-visible) .ua-close-arrow { transform: translateX(4px); }
.ua-close-btn:focus-visible { outline: 2px solid #fffdf8; outline-offset: 3px; }

/* Phones: one column per app, phone first, then the text. */
@media (max-width: 760px) {
  .ua { --ua-phone-w: 260px; }
  .ua-app { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ua-close { flex-direction: column; align-items: flex-start; }
}

/* Entrance (once per section, via site.js [data-reveal]; .reveal-pending is only added
   with JS and without reduced motion, so content stays visible otherwise): the phone
   slides in 40px from the left, the text 40px from the right, both fading in over
   1.2s with a smooth ease-out. `translate` doesn't affect layout. */
.ua-app.reveal-pending .ua-media { opacity: 0; translate: -40px 0; }
.ua-app.reveal-pending .ua-text  { opacity: 0; translate: 40px 0; }
.ua-app.reveal-pending.is-revealed :is(.ua-media, .ua-text) {
  opacity: 1;
  translate: 0 0;
  transition:
    opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1),
    translate 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .ua-app.reveal-pending :is(.ua-media, .ua-text) { opacity: 1; translate: none; }
  .ua-close-btn, .ua-close-arrow, .pw-dot::before { transition: none; }
}

/* ---------- Leistungs-Detailseiten (leistungen-onlineshops.html, leistungen-app-entwicklung.html,
   leistungen-social-media.html) ----------
   Same page shell as the project subpages (.pw, .pw-crumbs): ivory page, navy type, gold
   accents. Hero (heading, lead, gold button) above a large device composition, then
   section headings, connected steps, cards/rows and a closing navy panel. Entrances:
   site.js [data-reveal] → .sv-anim fades up 24px (stagger via data-reveal-stagger). */
.page-service { background: var(--cover-cream); }
.sv { --sv-line: #e0d6c6; --sv-ink: #3d4652; --sv-gold-ink: #8a6420; }
.sv-wrap { max-width: 1200px; margin-inline: auto; }
.sv .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Hero */
.sv-hero { padding-top: clamp(4px, 1vw, 12px); }
.sv-h1 {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(38px, 5.4vw, 80px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.sv-lead {
  max-width: 40ch;
  margin: clamp(16px, 1.8vw, 24px) 0 0;
  color: #2b3542;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
/* Gold button (navy text; the arrow nudges forward on hover). */
.sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 26px;
  border-radius: 12px;
  background: var(--cover-gold);
  color: var(--cover-navy);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color 0.2s var(--ease);
}
.sv-hero .sv-btn { margin-top: clamp(24px, 2.6vw, 36px); }
.sv-btn-arrow { transition: transform 0.3s var(--ease); }
.sv-btn:hover { background: #f4d89e; }
.sv-btn:is(:hover, :focus-visible) .sv-btn-arrow { transform: translateX(4px); }
.sv-btn:focus-visible { outline: 2px solid var(--cover-navy); outline-offset: 3px; }
.sv-visual { margin: clamp(36px, 4.5vw, 64px) 0 0; }

/* App-Entwicklung: page colour matches the photographic scene's wall (see .sv-hero--scene). */
.page-service--app { background: #f5eae3; overflow-x: clip; }

/* Photographic hero scene (Onlineshops & SEO, App-Entwicklung). Same typography and
   components as the other service pages. Hero = one photographic scene. The image (1536 × 1544: 520 px of extended wall on top of
   the 1536 × 1024 photo) sits in its own layer behind the text, full-bleed up to 1600 px and
   anchored to the section's bottom. The section's bottom padding reserves the device area
   (photo from just above the laptop down: 890 / 1536 of the width), so heading, lead and CTA
   sit on the quiet wall with the plant beside them. Its top fades into the page colour (the
   extended wall ends in exactly #fcedde), sides and bottom fade softly into the page. */
.page-service--shop { background: #fcedde; overflow-x: clip; }
.sv-hero--scene {
  --scene-w: min(100vw, 1600px);
  position: relative;
  isolation: isolate;
  --scene-devices: 890;   /* image rows (of 1536 px width) from just above the devices down */
  padding-bottom: calc(var(--scene-w) * var(--scene-devices) / 1536);
}
.sv-hero-text { position: relative; }
.page-service:has(.sv-hero--scene) .pw-crumbs { position: relative; z-index: 1; }   /* above the scene layer */
.sv-scene {
  position: absolute;
  z-index: -1;
  top: calc(-1 * clamp(40px, 6vw, 96px));   /* reaches up behind the breadcrumb */
  bottom: 0;
  left: 50%;
  width: var(--scene-w);
  translate: -50% 0;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, #000 88%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, #000 88%, transparent);
          mask-composite: intersect;
}
.sv-scene img { position: absolute; left: 0; bottom: 0; display: block; width: 100%; height: auto; }
.sv-hero--scene + .sv-section { margin-top: clamp(8px, 2vw, 32px); }
.page-service--app .sv-hero--scene { --scene-devices: 904; }   /* phones start ≈ 150 px into the photo */

/* Social Media: three platform logo images (Instagram, Facebook, TikTok) in one centred
   row, square, uncropped; their ivory edges fade into the page. Stacked on phones. */
.sv-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 32px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.sv-platforms img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
          mask-composite: intersect;
}
.page-service--social .sv-visual { margin-top: clamp(8px, 2vw, 28px); }
.page-service--social .sv-hero + .sv-section { margin-top: clamp(24px, 4vw, 64px); }

/* Section headings */
.sv-section { margin-top: clamp(64px, 8vw, 120px); }
.sv-h2 {
  max-width: 24ch;
  margin: 0 0 clamp(28px, 3.4vw, 48px);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Connected steps: number (or icon) circle with a thin line to the next step.
   Phones: one column, the line runs vertically between the circles. */
.sv-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sv-step { position: relative; }
.sv-step-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cover-gold);
  color: var(--cover-navy);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sv-step-mark--icon { border: 1.5px solid #e2c88f; background: #f6eedd; color: var(--sv-gold-ink); }
.sv-step-mark svg { width: 24px; height: 24px; }
.sv-step:not(:last-child)::after {      /* the connecting line */
  content: '';
  position: absolute;
  top: 26px;
  left: 72px;
  right: calc(-1 * clamp(24px, 3vw, 48px) + 16px);
  height: 1px;
  background: #cbbfa9;
}
.sv-steps--arrows .sv-step:not(:last-child)::before {   /* arrow head at the line's end */
  content: '';
  position: absolute;
  top: 22px;
  right: calc(-1 * clamp(24px, 3vw, 48px) + 17px);
  width: 8px; height: 8px;
  border-top: 1px solid #a99b82;
  border-right: 1px solid #a99b82;
  rotate: 45deg;
}
.sv-step h3 {
  margin: 20px 0 8px;
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.sv-step p { max-width: 34ch; margin: 0; color: var(--sv-ink); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; }

/* Icon rows (Onlineshop) */
.sv-rows { display: grid; gap: 12px; margin: clamp(48px, 5vw, 72px) 0 0; padding: 0; list-style: none; }
.sv-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
  padding: clamp(16px, 1.8vw, 22px) clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--sv-line);
  border-radius: 14px;
  background: #fffdf8;
}
.sv-row svg, .sv-card svg { color: var(--sv-gold-ink); }
.sv-row svg { width: 32px; height: 32px; justify-self: center; }
.sv-row h3, .sv-card h3 {
  margin: 0 0 4px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.sv-row p, .sv-card p { margin: 0; color: var(--sv-ink); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; }

/* Cards (App: 2, Social: 3) */
.sv-cards { display: grid; grid-template-columns: repeat(var(--sv-cols, 2), minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.sv-card { padding: clamp(22px, 2.6vw, 34px); border: 1px solid var(--sv-line); border-radius: 16px; background: #fffdf8; }
.sv-card svg { display: block; width: 34px; height: 34px; margin-bottom: 18px; }
.sv-card h3 { margin-bottom: 8px; font-size: clamp(20px, 1.8vw, 26px); }
.sv-section + .sv-section--tight { margin-top: clamp(48px, 5vw, 72px); }

/* Checklist with dividers (Social) */
.sv-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(28px, 3vw, 40px) 0 0;
  padding: 0;
  list-style: none;
}
.sv-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px clamp(12px, 2vw, 28px);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.35;
}
.sv-checks li:first-child { padding-left: 0; }
.sv-checks li + li { border-left: 1px solid #d6cbb8; }
.sv-checks svg { flex: none; width: 22px; height: 22px; color: #c08b2c; }

/* Discreet text link (App → Unsere Apps) */
.sv-more { margin: clamp(32px, 3.6vw, 48px) 0 0; }
.sv-more a { display: inline-flex; gap: 8px; color: #8a6116; font-size: 18px; text-decoration: none; }
.sv-more a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.sv-more a:focus-visible { outline: 2px solid var(--cover-navy); outline-offset: 4px; border-radius: 4px; }
.sv-more a:is(:hover, :focus-visible) .sv-btn-arrow { transform: translateX(4px); }

/* Closing navy panel: icon | divider | text | button. Stacked on phones. */
.sv-close {
  display: grid;
  grid-template-columns: auto 1px minmax(0, 1fr) auto;
  gap: clamp(16px, 2.6vw, 36px);
  align-items: center;
  margin-top: clamp(64px, 8vw, 112px);
  padding: clamp(26px, 3vw, 40px) clamp(24px, 3.6vw, 52px);
  border-radius: 22px;
  background: var(--cover-navy);
  color: #fffdf8;
}
.sv-close > svg { width: clamp(40px, 4vw, 52px); height: clamp(40px, 4vw, 52px); color: #fffdf8; }
.sv-close-rule { align-self: stretch; background: rgba(255, 253, 248, 0.25); }
.sv-close h2 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.sv-close p { margin: 6px 0 0; color: #d3d8df; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.45; }
.sv-close .sv-btn:focus-visible { outline-color: #fffdf8; }

@media (max-width: 900px) {
  .sv-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .sv-checks li:nth-child(3) { padding-left: 0; border-left: 0; }
  .sv-close { grid-template-columns: auto minmax(0, 1fr); }
  .sv-close-rule { display: none; }
  .sv-close .sv-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 760px) {
  .sv-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sv-step { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; }
  .sv-step-mark { grid-row: 1 / 3; }
  .sv-step h3 { margin-top: 12px; }
  .sv-step:not(:last-child)::after { top: 60px; bottom: -22px; left: 26px; right: auto; width: 1px; height: auto; }
  .sv-steps--arrows .sv-step:not(:last-child)::before { display: none; }
  .sv-cards { grid-template-columns: minmax(0, 1fr); }
  .sv-platforms { grid-template-columns: minmax(0, 1fr); max-width: 280px; gap: 0; }
  .sv-platforms li + li { margin-top: -12%; }   /* the images carry their own ivory margin */
  .sv-row { grid-template-columns: 40px minmax(0, 1fr); }
  .sv-row svg { width: 28px; height: 28px; }
}
@media (max-width: 480px) {
  .sv-checks { grid-template-columns: minmax(0, 1fr); }
  .sv-checks li, .sv-checks li + li { padding-left: 0; border-left: 0; }
  .sv-close { grid-template-columns: minmax(0, 1fr); }
  .sv-btn { width: 100%; justify-content: center; }
}

/* Entrances: fade up 24px over 0.9s, once (only with JS and without reduced motion). */
.sv-anim.reveal-pending { opacity: 0; translate: 0 24px; }
.sv-anim.reveal-pending.is-revealed {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1), translate 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .sv-anim.reveal-pending { opacity: 1; translate: none; }
  .sv-btn, .sv-btn-arrow { transition: none; }
}
