/* Shared compact portfolio and responsive print previews. */
#social-media.section{max-width:1600px;margin:auto;padding:64px 6%;border-top:1px solid var(--line)}
.compact-references{background:var(--paper);padding-top:64px;padding-bottom:64px}.reference-heading{max-width:760px;margin-bottom:32px}.reference-heading h2{font-size:clamp(30px,3vw,44px);line-height:1.15;margin-bottom:18px}.reference-heading>p:last-child{font-size:20px;color:var(--muted)}.reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px}.reference-card{min-width:0}.reference-image{border:0;display:block;position:relative;width:100%;height:210px;overflow:hidden;background:#e5eae7;padding:0;cursor:pointer;text-align:left;color:var(--navy)}.reference-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .6s ease}.reference-image.print-reference img{object-fit:contain;padding:14px}.reference-image span{position:absolute;bottom:0;right:0;background:var(--navy);color:white;padding:8px 13px;font-size:16px}.reference-image:hover img{transform:scale(1.035)}.reference-card .reference-type{font-size:14px;letter-spacing:1.5px;color:var(--teal);font-weight:bold;margin:17px 0 6px}.reference-card h3{font-size:24px;line-height:1.25;letter-spacing:-.4px;margin:0 0 10px}.reference-card>p:last-child{font-size:18px;line-height:1.5;margin:0;color:var(--muted)}
#publication-reader{width:min(1140px,96vw);max-width:96vw;max-height:95dvh;padding:20px;border:1px solid var(--line);background:var(--paper)}.reader-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.reader-toolbar h2{font-size:26px;line-height:1.2;margin:0}.reader-toolbar .close{position:static;transform:none;font-size:17px;width:auto;height:auto;padding:8px 12px;white-space:nowrap}.reader-pages{display:flex;justify-content:center;gap:2px;background:#e3e7e2;overflow:auto;padding:16px;touch-action:pan-y}.reader-pages img{width:auto;max-width:50%;height:58dvh;object-fit:contain;box-shadow:0 4px 15px #08234420}.reader-pages img[hidden]{display:none}.reader-controls{display:flex;gap:18px;justify-content:center;align-items:center;flex-wrap:wrap;margin:18px 0 8px}.reader-controls button,.reader-controls select{padding:8px 12px;border:1px solid var(--line);background:white;color:var(--navy);font-size:18px;min-height:44px}.reader-controls button:disabled{opacity:.4}.reader-controls label,#reader-status,#reader-pdf{font-size:17px}#reader-pdf{display:block;text-align:center;text-decoration:underline}.service-figure{min-width:0}.brochure-demo{height:auto;aspect-ratio:1.4}.brochure-demo .opening-brochure{height:auto;width:40%;aspect-ratio:0.707}.brochure-demo.is-open .opening-brochure{transform:translateX(50%) rotate(0deg)}
@media(max-width:1000px){.reference-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-image{height:200px}}
@media(max-width:700px){.reference-grid{grid-template-columns:minmax(0,1fr);gap:30px}.reference-image{height:210px}.compact-references{padding-top:42px;padding-bottom:42px}#social-media.section{padding:42px 6%}.brochure-demo{height:auto;min-height:0;aspect-ratio:1.2}.brochure-demo .opening-brochure{height:auto;width:40%;max-width:40%;aspect-ratio:.707}.reader-toolbar{align-items:flex-start}.reader-toolbar h2{font-size:21px}.reader-toolbar .close{font-size:15px;padding:6px}.reader-pages{padding:6px}.reader-pages img{max-width:100%;height:auto;max-height:62dvh}.reader-controls{gap:8px}.reader-controls button{font-size:16px}.reader-controls #reader-status{width:100%;text-align:center;order:4}#publication-reader{padding:12px}.reference-card h3{font-size:24px}}
@media(prefers-reduced-motion:reduce){.reference-image img{transition:none}}
/* Process cards: retain a full-width title row on phones and tablets. */
@media(max-width:900px){
 .process ol{grid-template-columns:minmax(0,1fr);gap:42px}
 .process li{display:block;min-width:0}
 .process .process-photo{width:100%;margin-bottom:20px}
 .process li>span{display:block}
 .process .process-title{height:auto;min-height:0;margin:14px 0 18px;font-size:26px;line-height:1.3}
 .process .process-title>span{max-width:100%;white-space:normal;overflow-wrap:break-word}
 .process li p{margin:0;clear:both}
}
/* Limited book sample: only one selected spread is delivered. */
.book-sample{perspective:1000px;background:#e9eeeb;isolation:isolate;cursor:pointer}
.reference-image.book-sample .sample-spread{position:absolute;inset:12px 22px 34px;display:flex;justify-content:center;background:none;padding:0;transform:none;opacity:0;transition:opacity .45s}
.reference-image.book-sample .sample-spread img{position:static;width:auto;max-width:50%;height:100%;object-fit:contain;box-shadow:0 3px 8px #102b4020;transform:none}
.reference-image.book-sample .sample-cover{position:absolute;width:auto;height:calc(100% - 24px);left:50%;top:12px;transform:translateX(-50%);transform-origin:left center;object-fit:contain;box-shadow:4px 5px 12px #102b4030;transition:transform .65s,opacity .45s}
.reference-image.book-sample .sample-label{z-index:3}
.book-sample[aria-expanded="true"] .sample-spread{opacity:1}
.reference-image.book-sample[aria-expanded="true"] .sample-cover{transform:translateX(-100%) rotateY(-72deg);opacity:0}
@media(hover:hover) and (pointer:fine){.reference-image.book-sample:hover .sample-cover{transform:translateX(-100%) rotateY(-72deg);opacity:0}.reference-image.book-sample:hover .sample-spread{opacity:1}}
@media(prefers-reduced-motion:reduce){.reference-image.book-sample .sample-cover,.reference-image.book-sample .sample-spread{transition:none}}
/* Mobile entrance: headline and visual precede the longer introduction. */
.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:28px 36px}
.hero-actions>.text-link{margin:0}
@media(max-width:700px){
 .hero{display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:22px 6% 36px}
 .hero-copy{display:contents}
 .hero-copy>.eyebrow{grid-row:1;margin:0 0 12px;font-size:14px}
 .hero-copy>h1{grid-row:2;margin:0 0 20px;font-size:clamp(34px,9vw,48px);line-height:1.08}
 .hero>.motion-hero{grid-row:3;min-height:0;height:clamp(280px,76vw,360px);width:100%;margin:0 0 22px}
 .hero-copy>.intro{grid-row:4;margin:0 0 22px;font-size:20px;line-height:1.55}
 .hero-actions{display:contents}
 .hero-actions>.button{grid-row:5;justify-self:start;max-width:100%;margin:0}
 .hero-actions>.text-link{grid-row:6;justify-self:start;margin:32px 0 0}
 .hero-copy>.hero-note{grid-row:7;margin-top:24px;padding-top:18px}
 .hero .motion-kicker,.hero .motion-bottom,.hero .hero-product>span,.hero .hero-product>i{display:none}
 .hero .hero-product{padding:16px;justify-content:center}
 .hero .hero-product strong{font-size:clamp(25px,6.5vw,32px)}
 .hero .hero-brochure{top:13%;height:74%;left:9%}
 .hero .hero-flyer{top:25%;height:63%;left:35%}
 .hero .hero-phone{top:36%;height:53%;right:5%;padding:10px 7px;gap:10px}
 .hero .hero-phone strong{font-size:16px}
 .hero .phone-art{font-size:52px}
}
@media(max-width:700px){
 header{min-height:0;height:auto;padding:12px 6%;gap:8px;flex-direction:column}
 header .brand{width:250px;max-width:100%}
 header .brand img{display:block;width:100%;height:auto}
 header nav{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:0 12px;font-size:16px;text-align:center}
 header nav a{display:flex;align-items:center;justify-content:center;min-height:40px;padding:4px 0;margin:0;border:0;white-space:nowrap}
}
@media (max-width: 700px) {
  .home-header { padding: 6px 3%; gap: 1px; }
  .home-header .brand { width: 175px; }
  .home-header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 12px;
  }
  .home-header nav a { min-height: 40px; font-size: 15px; }
}
/* Publications sit directly on the page, without coloured display panels. */
.motion-hero,.fan-demo,.brochure-demo,.chronicle-demo,.report-demo,.print-photo-demo,.reference-image,.book-sample{background:transparent}
.reference-image.print-reference img{filter:drop-shadow(3px 6px 7px #08234424)}
.print-state{background-color:transparent}
/* A compact format gallery replaces the oversized simulated Facebook window. */
.format-heading{display:grid;grid-template-columns:1fr 1.4fr;gap:8%;align-items:start;margin-bottom:36px}
.format-heading h2{font-size:clamp(32px,3vw,46px);line-height:1.12;margin:12px 0 0}
.format-heading>div>p:not(.eyebrow){font-size:20px;line-height:1.6;color:var(--muted);margin:0 0 20px}
.format-heading .text-link{margin:0;font-size:18px}
.format-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px}
.format-card{min-width:0}.format-stage{height:320px;display:flex;align-items:center;justify-content:center;margin-bottom:24px}
.format-image{border:0;padding:0;display:block;overflow:hidden;cursor:zoom-in;box-shadow:0 8px 22px #08234424;transition:transform .35s;background:#081d2b}
.format-image img{width:100%;height:100%;display:block;object-fit:contain}
.format-square{width:min(100%,300px);aspect-ratio:1}
.format-portrait{width:min(100%,256px);max-height:100%;aspect-ratio:4/5}.format-story{height:100%;aspect-ratio:9/16}
.format-video{display:block;height:100%;max-width:100%;aspect-ratio:9/16;object-fit:contain;background:#081d2b;box-shadow:0 8px 22px #08234424}
.format-type{font-size:14px;letter-spacing:1.1px;font-weight:bold;color:var(--teal);margin:0 0 8px}
.format-card h3{font-size:26px;line-height:1.2;margin:0 0 12px}
.format-card>p:not(.format-type){font-size:18px;line-height:1.5;color:var(--muted);margin:0}
.format-options{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.format-options button{font:inherit;font-size:16px;padding:8px 10px;border:1px solid var(--line);background:transparent;color:var(--navy);cursor:pointer}.format-options button[aria-pressed=true]{border-color:var(--teal);color:var(--teal)}
.format-note{font-size:16px;color:var(--muted);margin:26px 0 0}
@media (hover: hover) and (pointer: fine) and (min-width: 701px) {
  .format-image { position: relative; }
  .format-gallery > :first-child .format-image { transform-origin: left center; }
  .format-image:is(:hover, :focus-visible) {
    z-index: 3;
    transform: scale(1.55);
    box-shadow: 0 16px 40px #08234436;
  }
}
@media (hover: hover) and (pointer: fine) and (min-width: 701px) and (max-width: 900px) {
  .format-gallery > :nth-child(2) .format-image { transform-origin: right center; }
}
@media (hover: hover) and (pointer: fine) and (max-width: 700px) {
  .format-image { position: relative; max-width: 70vw; }
  .format-image:is(:hover, :focus-visible) { z-index: 3; transform: scale(1.35); }
}
@media(max-width:900px){.format-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.format-stage{height:260px}.format-heading{gap:5%}}
@media(max-width:700px){.format-heading{grid-template-columns:1fr;gap:22px;margin-bottom:32px}.format-gallery{grid-template-columns:1fr;gap:40px}.format-stage{height:320px;margin-bottom:20px}.format-square{width:300px;max-width:100%}.format-card h3{font-size:26px}.format-note{margin-top:30px}}
@media(prefers-reduced-motion:reduce){.format-image{transition:none}}

.youtube-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  text-align: left;
}
.youtube-card .youtube-video { width: 100%; height: auto; aspect-ratio: 16/9; }
@media (max-width: 700px) {
  .youtube-card { grid-template-columns: 1fr; gap: 20px; }
}

.hero > .cube-hero { min-height: 0; height: auto; align-self: center; }
.cube-hero img { display: block; width: 100%; height: auto; }

.campaign-cubes {
  container-type: inline-size;
  position: relative;
  height: clamp(240px, 29vw, 385px);
  background: transparent;
}
.campaign-cube {
  position: absolute;
  top: 68%;
  width: 30%;
  height: auto;
  overflow: visible;
  background: transparent;
  aspect-ratio: 1;
  color: white;
  transform: translateY(-50%);
  filter: drop-shadow(0 8px 6px #08234420);
  transition: transform .55s ease;
}
.campaign-cube::before, .campaign-cube::after {
  content: "";
  position: absolute;
  inset: 0;
}
.campaign-cube::before {
  background: var(--side);
  clip-path: polygon(0 14%, 17% 0, 100% 0, 83% 14%);
}
.campaign-cube::after {
  background: var(--side);
  clip-path: polygon(83% 14%, 100% 0, 100% 86%, 83% 100%);
}
.campaign-cube strong {
  position: absolute;
  inset: 14% 17% 0 0;
  background: var(--front);
  display: grid;
  place-content: center;
  text-align: center;
  font-size: clamp(16px, 4.7cqw, 32px);
  line-height: 1.05;
}
.poster-cube { left: 5%; --front: #102d50; --top: #45617c; --side: #091f37; }
.flyer-cube { left: 35%; --front: #ebdcc1; --top: #fbefd9; --side: #c5aa83; color: #102d50; transform: translateY(-60%); }
.social-cube { left: 65%; --front: #007f75; --top: #459f92; --side: #005c58; }

.campaign-cubes { max-width: 650px; margin-inline: auto; height: auto; aspect-ratio: 1.45; }
.campaign-cube strong, .campaign-cube::after { z-index: 3; }
.cube-lid {
  position: absolute;
  inset: -50% 0 86% 0;
  z-index: 2;
  background: var(--top);
  clip-path: polygon(0 100%, 17% 78.125%, 100% 78.125%, 83% 100%);
  transition: clip-path .32s ease .25s;
}
.campaign-cube.is-open .cube-lid {
  clip-path: polygon(12% 14%, 17% 78.125%, 100% 78.125%, 95% 14%);
  transition-delay: 0s;
}
.cube-content {
  position: absolute;
  top: 14%;
  left: 21%;
  width: 52%;
  height: 76%;
  z-index: 2;
  pointer-events: none;
  background: #fffaf0;
  padding: 2%;
  box-sizing: border-box;
  box-shadow: 0 3px 7px #08234430;
  transition: transform .4s ease;
}
.cube-content img { display: block; width: 100%; height: 100%; object-fit: cover; }
.flyer-cube .cube-content { width: 48%; height: 64%; }
.social-cube .cube-content {
  width: 37%; height: 76%; left: 29%; padding: 3% 2%;
  border-radius: 12% / 6%; background: #17232b;
}
.social-cube .cube-content img { border-radius: 8% / 4%; }
.campaign-cube.is-open .cube-content { transform: translateY(-104%) rotate(-4deg); transition-delay: .2s; }
.social-cube.is-open .cube-content { transform: translateY(-104%) rotate(3deg); }
@media (prefers-reduced-motion: reduce) {
  .campaign-cube .cube-lid, .campaign-cube .cube-content { transition: none; }
}

/* Reveal the printed sheet at its moving rolled edge. */
.poster-cube .cube-content {
  top: auto;
  bottom: 86%;
  left: 5%;
  width: 76%;
  height: auto;
  aspect-ratio: 2 / 3;
  padding: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transition: opacity .08s linear .52s;
}
.poster-cube.is-open .cube-content {
  transform: none;
  opacity: 1;
  transition-delay: .18s;
}
.poster-cube .cube-content img {
  border: 2px solid #fff9e9;
  box-sizing: border-box;
  clip-path: inset(100% 0 0);
  transition: clip-path .52s ease-in-out;
}
.poster-cube .cube-content::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 100%;
  height: 8%;
  border-radius: 4px / 50%;
  background: linear-gradient(#927f62, #f9efdb 28%, #fffaf0 44%, #d6c5a7 76%, #887554);
  box-shadow: 0 2px 3px #382b1544;
  transition: top .52s ease-in-out;
}
.poster-cube.is-open .cube-content img { clip-path: inset(0); }
.poster-cube.is-open .cube-content::after { top: 0; }
.poster-cube.is-open .cube-content img,
.poster-cube.is-open .cube-content::after { transition-delay: .2s; }
.poster-cube:not(.is-open) .cube-lid { transition-delay: .55s; }
@media (prefers-reduced-motion: reduce) {
  .poster-cube .cube-content, .poster-cube .cube-content img,
  .poster-cube .cube-content::after { transition: none; }
}

/* Inside pages and cover designs in the book-design service card. */
.book-example-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0 0 18px; }
.book-example-links button { padding: 10px 0; border: 0; background: transparent; color: var(--navy); font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.book-example-links button:hover { color: var(--teal); }
.type-spread { display: grid; grid-template-columns: 1fr 1fr; position: relative; box-shadow: 0 5px 15px #30271c24; }
.type-spread img { display: block; width: 100%; height: auto; }
.type-spread::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg,transparent 46%,#301d1412 49.6%,#301d1433 50%,transparent 52.5%); }
.cover-previews { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: end; gap: clamp(9px,1vw,20px); width: min(85vw, 830px); padding: 12px 18px 20px; box-sizing: border-box; margin: 0; }
.cover-previews button { padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.cover-previews img { display: block; width: 100%; height: auto; box-shadow: 0 3px 8px #18233125; }
.book-example-links button:focus-visible, .cover-previews button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.book-viewer { width: max-content; max-width: min(96vw, 1060px); max-height: 94vh; max-height: 94dvh; padding: 0; overflow: auto; }
.book-viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; background: white; position: sticky; top: 0; z-index: 1; }
.book-viewer-head h2 { margin: 0; font-size: clamp(18px,2vw,25px); line-height: 1.18; }
.book-viewer-head .close { flex: none; }
.book-viewer > img { display: block; width: auto; max-width: 100%; height: auto; max-height: 78vh; margin: 0 auto; }
.book-viewer .type-spread { width: min(90vw, 102vh, 1000px); }
@media (max-width: 600px) {
  .book-viewer .type-spread { display: block; width: min(94vw, 440px); }
  .book-viewer .type-spread::after { display: none; }
}
.book-transcript { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.web-showcase .region-links { margin-top: 2rem; }
.web-showcase .region-links a { padding-block: .4rem; }
#webbeispiele { scroll-margin-top: 1rem; }
@media (max-width: 700px) {
  .hero-copy > .intro { grid-row: 3; }
  .hero-actions > .button { grid-row: 4; }
  .hero-actions > .text-link { grid-row: 5; margin: 22px 0; }
  .hero > .motion-hero { grid-row: 6; margin-bottom: 0; }
  .hero-copy > .web-prices { grid-row: 7; }
  .hero-copy > .hero-note { grid-row: 8; }
}

#arbeitsbeispiele,
#weitere-arbeitsbeispiele {
  border-image: linear-gradient(var(--paper), var(--paper)) fill 0 / 0 / 0 100vmax;
}
