/* Editorial page families share the same rhythm while preserving original media. */
body:not([data-page="/"]) .reference-content :is(
  [data-service="contact"],
  [data-service="career"],
  [data-collection="team"],
  [data-collection="market"],
  [data-collection="giveaways"],
  [data-collection="archive"]
) { min-width: 0; }

/* Contact and careers. */
body[data-page="/karriere"] .reference-content [data-editorial-intro][data-has-media=true][data-media-fit=contain]:not([hidden]) [data-intro-media] {
  width: min(100%, 440px)!important;
  height: auto!important;
  aspect-ratio: 4 / 5;
  justify-self: end;
  align-self: center;
  background: transparent!important;
  border: 0;
}
body[data-page="/karriere"] .reference-content [data-editorial-intro][data-has-media=true][data-media-fit=contain]:not([hidden]) [data-intro-media] img {
  width: 100%!important;
  height: auto!important;
  max-height: none!important;
  object-fit: contain!important;
}
body[data-page="/kontakt"] .transaction-module__6Ba58q__contactGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
body[data-page="/kontakt"] .transaction-module__6Ba58q__contactGroup {
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius);
  background: var(--page-surface)!important;
  padding: clamp(22px, 3vw, 36px);
  min-width: 0;
}
body[data-page="/kontakt"] .transaction-module__6Ba58q__contactGroup h2 {
  font-size: 26px;
  margin: 28px 0 12px;
}
body[data-page="/kontakt"] .transaction-module__6Ba58q__contactGroup h2:first-child { margin-top: 0; }
body[data-page="/kontakt"] .transaction-module__6Ba58q__contactGroup a { overflow-wrap: anywhere; }
body[data-page="/kontakt"] .transaction-module__6Ba58q__section {
  margin-top: var(--page-section-space);
  padding-block: 0;
  border: 0;
  background: transparent;
}
body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobGrid {
  gap: 24px;
  margin-bottom: var(--page-section-space);
  align-items: stretch;
}
body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobCard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius)!important;
  background: var(--page-surface);
}
body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobPoster {
  display: block;
  margin: 0 0 22px;
  background: transparent;
  border-radius: var(--page-image-radius);
}
body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobPoster img {
  width: 100%;
  height: clamp(290px, 31vw, 420px);
  object-fit: contain;
  margin: 0;
}
body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobCard h2 {
  font-size: clamp(24px, 2.1vw, 29px);
  line-height: 1.15;
  margin-bottom: 12px;
}
body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__textLink {
  width: fit-content;
  margin-top: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
body:not([data-page="/"]) [data-service="career"] .job-application-action { margin-top: auto; padding-top: 20px; }
body:not([data-page="/"]) [data-service="career"] .job-application-action a { width: 100%; }
body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__application {
  margin-top: var(--page-section-space);
  padding: 0;
  background: transparent;
  border: 0;
}
body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobDetail {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
}
body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobDetail .transaction-module__6Ba58q__jobPoster img {
  height: auto;
  max-height: 640px;
}

/* People and authentic market photography. */
/* Level the original photo inside the existing clipped frame. The slight
   overscan covers rotation corners without changing the people in the photo. */
.reference-content [data-intro-media] img[src="/images/team/team-sven-niko-original.jpg"] {
  transform: rotate(1deg) scale(1.025);
  transform-origin: center;
}
body[data-page="/galerie"] .collection-module__i7JOCq__teamLead { gap: 24px; margin-bottom: 28px; }
body[data-page="/galerie"] .collection-module__i7JOCq__section {
  padding-block: calc(var(--page-section-space) * .5);
  border: 0;
  background: transparent;
}
body[data-page="/galerie"] .collection-module__i7JOCq__portraitGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
body[data-page="/galerie"] .collection-module__i7JOCq__portraitGrid figure {
  display: flex;
  flex-direction: column;
  background: var(--page-surface);
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius);
}
body[data-page="/galerie"] .collection-module__i7JOCq__portraitGrid img {
  width: 100%;
  height: clamp(260px, 28vw, 350px);
  object-fit: contain;
  background: transparent;
  border-radius: var(--page-image-radius);
}
body[data-page="/galerie"] .collection-module__i7JOCq__portraitGrid figcaption {
  padding: 18px 20px;
  border: 0;
}
body[data-page="/marktleben"] .collection-module__i7JOCq__body > .collection-module__i7JOCq__section {
  margin: 0 0 var(--page-section-space);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body[data-page="/marktleben"] .collection-module__i7JOCq__section > div:has(> [data-product-story]),
body[data-page="/marktleben"] .collection-module__i7JOCq__photoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}
body[data-page="/marktleben"] .collection-module__i7JOCq__section [data-product-story] {
  display: block;
  margin: 0 !important;
  padding: 0;
  min-width: 0;
  border: 0;
  background: transparent;
}
body[data-page="/marktleben"] .collection-module__i7JOCq__photoGrid > :only-child {
  grid-column: auto;
  max-width: 100%;
}
body[data-page="/marktleben"] [data-product-story] figure {
  margin: 0;
  background: var(--page-surface);
  border-radius: var(--page-image-radius);
}
body[data-page="/marktleben"] [data-product-story] img {
  width: 100%;
  height: clamp(300px, 37vw, 490px);
  object-fit: contain;
  border-radius: var(--page-image-radius);
}
body[data-page="/marktleben"] .market-product-copy { padding-top: 20px; }
body[data-page="/marktleben"] .market-product-copy h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.15;
  margin: 0 0 12px;
}
body[data-page="/marktleben"] .collection-module__i7JOCq__fineprint {
  margin: 0 0 28px;
  max-width: 80ch;
  font-size: 13px;
  line-height: 1.7;
}
body[data-page="/community"] [data-tool="community"] { padding-top: 0; }
body[data-page="/community"] .editorial-module__k9584G__notice {
  padding: 24px;
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius);
  background: var(--page-surface);
  max-width: 75ch;
  margin-bottom: 24px;
}

/* The current promotion and its archive use one card system. */
body:is([data-page="/gewinnspiel"], [data-page="/gewinnspiel/archiv"]) .giveaways-module__F262KW__section {
  padding-block: calc(var(--page-section-space) * .5);
  border: 0;
  background: transparent;
}
body:is([data-page="/gewinnspiel"], [data-page="/gewinnspiel/archiv"]) :is(.giveaways-module__F262KW__grid, .giveaways-module__F262KW__handoverGrid) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
body:is([data-page="/gewinnspiel"], [data-page="/gewinnspiel/archiv"]) .giveaways-module__F262KW__card {
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius)!important;
  background: var(--page-surface);
}
body:is([data-page="/gewinnspiel"], [data-page="/gewinnspiel/archiv"]) .reference-content .giveaways-module__F262KW__cardBody {
  padding: 22px;
  gap: 14px;
  background: transparent!important;
}
body:is([data-page="/gewinnspiel"], [data-page="/gewinnspiel/archiv"]) .giveaways-module__F262KW__cardTop {
  background: transparent;
}
body:is([data-page="/gewinnspiel"], [data-page="/gewinnspiel/archiv"]) .giveaways-module__F262KW__coverLink {
  background: transparent;
  border-radius: var(--page-image-radius);
  align-self: stretch;
  display: grid;
  align-items: center;
}
body:is([data-page="/gewinnspiel"], [data-page="/gewinnspiel/archiv"]) .giveaways-module__F262KW__coverImage {
  height: clamp(300px, 31vw, 420px);
  width: 100%;
  object-fit: contain;
}
body[data-page="/gewinnspiel"] .giveaways-module__F262KW__activeGrid { gap: 24px; }
body[data-page="/gewinnspiel"] .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__card {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}
body[data-page="/gewinnspiel"] .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__cardBody {
  padding: clamp(24px, 3vw, 40px);
}
body[data-page="/gewinnspiel"] .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__card:nth-child(n) .giveaways-module__F262KW__coverLink { order: 0; }
body[data-page="/gewinnspiel"] .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__coverImage { height: 460px; }
body:is([data-page="/gewinnspiel"], [data-page="/gewinnspiel/archiv"]) .giveaways-module__F262KW__handoverGrid img {
  width: 100%;
  height: 340px;
  object-fit: contain;
  background: var(--page-surface);
  border-radius: var(--page-image-radius);
}
/* Leaflets float on the common canvas, like the homepage covers. */
body:is([data-page="/angebote"],[data-page="/handzettel"]) .collection-module__i7JOCq__flyers{gap:clamp(32px,5vw,72px);align-items:start}
body:is([data-page="/angebote"],[data-page="/handzettel"]) .reference-content .collection-module__i7JOCq__flyer{padding:0;border:0;border-radius:0;background:transparent!important;box-shadow:none}
body:is([data-page="/angebote"],[data-page="/handzettel"]) .collection-module__i7JOCq__flyer h2{font-size:clamp(26px,2.5vw,36px);margin:12px 0 28px}
body:is([data-page="/angebote"],[data-page="/handzettel"]) .current-module__7aznxW__viewer{border:0;background:transparent}
body:is([data-page="/angebote"],[data-page="/handzettel"]) .current-module__7aznxW__cover{height:auto;min-height:0;aspect-ratio:auto;border:0;background:transparent!important;overflow:visible;transform:perspective(1500px) rotateY(-9deg) rotateX(2deg);filter:drop-shadow(12px 22px 18px #0008)}
body:is([data-page="/angebote"],[data-page="/handzettel"]) .current-module__7aznxW__cover img{position:static!important;width:100%!important;height:auto!important;max-height:760px;object-fit:contain}
body:is([data-page="/angebote"],[data-page="/handzettel"]) .current-module__7aznxW__viewerTrigger{margin-top:26px;min-height:46px;border:1px solid var(--page-line);background:var(--page-surface)!important;color:#f9f8f4!important;border-radius:10px}

/* Legal information is deliberately a quiet, readable text page. */
body:is([data-page="/impressum"], [data-page="/datenschutz"], [data-page="/agb"]) .reference-content [data-editorial-intro] {
  min-height: 0;
  padding-block: 38px 28px !important;
}
body:is([data-page="/impressum"], [data-page="/datenschutz"], [data-page="/agb"]) .reference-content [data-editorial-intro] [class*="__introLayout"] { min-height: 0; }
body:is([data-page="/impressum"], [data-page="/datenschutz"], [data-page="/agb"]) .reference-content [data-editorial-intro] [class*="__introCopy"] {
  max-width: 850px !important;
  margin-inline: auto !important;
}
body:is([data-page="/impressum"], [data-page="/datenschutz"], [data-page="/agb"]) .reference-content [data-editorial-intro] h1 {
  font-size: clamp(30px, 4.3vw, 58px) !important;
  overflow-wrap: anywhere !important;
}
body:is([data-page="/impressum"], [data-page="/datenschutz"], [data-page="/agb"]) .transaction-module__6Ba58q__legal {
  width: 100%;
  max-width: calc(68ch + var(--gutter) * 2);
  padding: 0 var(--gutter) calc(var(--page-section-space) * .5);
  font-family: var(--reading-font);
  font-size: clamp(16px, 1.3vw, 18px);
}
body:is([data-page="/impressum"], [data-page="/datenschutz"], [data-page="/agb"]) .transaction-module__6Ba58q__legal h2 {
  border: 0;
  padding-top: 0;
  margin: 40px 0 16px;
  font-size: 26px;
}

/* The Dutch landing page keeps its orange campaign, with matching spacing and cards. */
body[data-page="/nl"] main .nl-contact-action {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 0;
  flex: 0 1 auto;
  font-size: 16px;
  line-height: 1.35;
}
body[data-page="/nl"] main .nl-contact-action > img {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
body[data-page="/nl"] main .nl-contact-action > .nl-contact-label {
  display: block;
  white-space: nowrap;
  line-height: 1.35;
}
body[data-page="/nl"] .nl-module__LAfG_q__hero { gap: clamp(28px, 4vw, 48px); padding-block: 40px; }
body[data-page="/nl"] :is(.nl-module__LAfG_q__visit, .nl-module__LAfG_q__brands, .nl-module__LAfG_q__contact, .nl-module__LAfG_q__people) {
  padding-block: calc(var(--page-section-space) * .5);
  gap: 32px;
}
body[data-page="/nl"] .nl-module__LAfG_q__services {
  width: calc(100% - var(--gutter) * 2);
  max-width: calc(var(--subpage-content-max, 1240px) - var(--gutter) * 2);
  margin-inline: auto;
  background: var(--page-surface);
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius);
  gap: 0;
}
body[data-page="/nl"] .nl-module__LAfG_q__serviceCopy { padding: clamp(24px, 3vw, 40px); }
body[data-page="/nl"] .nl-module__LAfG_q__servicePhoto img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  max-height: 540px;
  object-fit: contain;
  background: transparent;
  border-radius: var(--page-image-radius);
}
body[data-page="/nl"] .nl-module__LAfG_q__visitFacts {
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius);
  background: var(--page-surface)!important;
  padding: 20px 24px;
}
body[data-page="/nl"] .reference-content .nl-module__LAfG_q__contact {
  border: 0;
  margin-top: 0;
  background: transparent!important;
}
body[data-page="/nl"] :is(.nl-module__LAfG_q__visitFacts > div, .nl-module__LAfG_q__contactLinks a:not([data-brand-link])) {
  border-color: var(--page-line);
}
body[data-page="/nl"] .nl-module__LAfG_q__peopleGrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 24px 0;
}
body[data-page="/nl"] .nl-module__LAfG_q__peopleGrid > figure:not([data-team-photo-placeholder]) {
  background: var(--page-surface);
  border: 1px solid var(--page-line);
  border-radius: var(--page-radius);
}
body[data-page="/nl"] .nl-module__LAfG_q__peopleGrid > figure:not([data-team-photo-placeholder]) img {
  height: 260px;
  object-fit: contain;
  border-radius: var(--page-image-radius);
  background: transparent;
}
body[data-page="/nl"] .nl-module__LAfG_q__peopleGrid figcaption { padding: 14px 18px; }
body[data-page="/nl"] .nl-module__LAfG_q__people .static-disclosure-title {
  border: 0;
  padding-top: 0;
  font-size: 24px;
}

@media (max-width: 1000px) {
  body[data-page="/galerie"] .collection-module__i7JOCq__portraitGrid,
  body:is([data-page="/gewinnspiel"], [data-page="/gewinnspiel/archiv"]) :is(.giveaways-module__F262KW__grid, .giveaways-module__F262KW__handoverGrid),
  body[data-page="/nl"] .nl-module__LAfG_q__peopleGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body[data-page="/kontakt"] .transaction-module__6Ba58q__contactGrid,
  body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobDetail,
  body[data-page="/marktleben"] .collection-module__i7JOCq__section > div:has(> [data-product-story]),
  body[data-page="/marktleben"] .collection-module__i7JOCq__photoGrid,
  body[data-page="/gewinnspiel"] .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__card {
    grid-template-columns: minmax(0, 1fr);
  }
  body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobGrid { gap: 20px; }
  body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobCard { padding: 20px; }
  body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobPoster img { height: 380px; }
  body[data-page="/galerie"] .collection-module__i7JOCq__portraitGrid { gap: 18px; }
  body[data-page="/galerie"] .collection-module__i7JOCq__portraitGrid img { height: 280px; }
  body[data-page="/marktleben"] .collection-module__i7JOCq__body > .collection-module__i7JOCq__section { padding: 0; margin-bottom: var(--page-section-space); }
  body[data-page="/marktleben"] [data-product-story] img { height: min(115vw, 460px); }
  body[data-page="/gewinnspiel"] .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__coverImage { height: min(120vw, 460px); }
  body[data-page="/nl"] .nl-module__LAfG_q__hero { padding-block: 28px; }
  body[data-page="/nl"] .nl-module__LAfG_q__servicePhoto img { min-height: 0; height: auto; max-height: 440px; }
  body[data-page="/nl"] .nl-module__LAfG_q__peopleGrid { gap: 16px; }
  body[data-page="/nl"] .nl-module__LAfG_q__peopleGrid > figure:not([data-team-photo-placeholder]) img { height: 210px; }
}
@media (max-width: 540px) {
  body:not([data-page="/"]) [data-service="career"] .transaction-module__6Ba58q__jobGrid,
  body[data-page="/galerie"] .collection-module__i7JOCq__portraitGrid,
  body:is([data-page="/gewinnspiel"], [data-page="/gewinnspiel/archiv"]) :is(.giveaways-module__F262KW__grid, .giveaways-module__F262KW__handoverGrid) {
    grid-template-columns: minmax(0, 1fr);
  }
  body[data-page="/galerie"] .collection-module__i7JOCq__portraitGrid img { height: min(105vw, 360px); }
  body[data-page="/nl"] .nl-module__LAfG_q__peopleGrid > figure:not([data-team-photo-placeholder]) img { height: 170px; }
  body[data-page="/nl"] .nl-module__LAfG_q__peopleGrid figcaption { padding: 12px; }
}

/* Wide giveaway cards keep the status above the copy, alongside the complete poster. */
body[data-page="/gewinnspiel"] .reference-content .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__card{
 grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-rows:auto 1fr;align-items:start;background:var(--page-surface)!important;
}
body[data-page="/gewinnspiel"] .reference-content .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__cardTop{grid-column:2;grid-row:1;align-self:start;padding:32px 32px 0;gap:16px;flex-wrap:wrap}
body[data-page="/gewinnspiel"] .reference-content .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__coverLink{grid-column:1;grid-row:1 / 3;align-self:center;padding:20px;order:0}
body[data-page="/gewinnspiel"] .reference-content .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__cardBody{grid-column:2;grid-row:2;padding:28px 32px 32px;display:flex;flex-direction:column;align-items:start}
@media(max-width:760px){
 body[data-page="/gewinnspiel"] .reference-content .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__card{grid-template-columns:minmax(0,1fr);grid-template-rows:auto}
 body[data-page="/gewinnspiel"] .reference-content .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__cardTop{grid-column:1;grid-row:1;padding:24px 22px 0}
 body[data-page="/gewinnspiel"] .reference-content .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__coverLink{grid-column:1;grid-row:2;padding:22px}
 body[data-page="/gewinnspiel"] .reference-content .giveaways-module__F262KW__activeGrid .giveaways-module__F262KW__cardBody{grid-column:1;grid-row:3;padding:0 22px 24px}
}
