.du-ref-overview,
.du-ref-detail {
  --du-ref-accent: #e4003f;
  --du-ref-green: #74b843;
  --du-ref-dark: #101010;
  --du-ref-muted: #6b7280;
  --du-ref-soft: #f4f5f6;
  box-sizing: border-box;
}

.du-ref-overview *,
.du-ref-detail *,
.du-ref-overview *::before,
.du-ref-overview *::after,
.du-ref-detail *::before,
.du-ref-detail *::after {
  box-sizing: border-box;
}

.du-ref-grid {
  display: grid;
  gap: clamp(18px, 2.3vw, 34px);
  margin: 0 auto;
  width: min(100%, 1280px);
}

.du-ref-grid--cols-1 { grid-template-columns: 1fr; }
.du-ref-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.du-ref-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.du-ref-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.du-ref-card {
  align-items: center;
  aspect-ratio: 16 / 9;
  background-image: var(--du-ref-bg);
  background-position: center;
  background-size: cover;
  color: #fff;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-decoration: none !important;
  transform: translateZ(0);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.du-ref-card:hover,
.du-ref-card:focus-visible {
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
  filter: saturate(1.04);
  transform: translateY(-4px);
}

.du-ref-card:focus-visible {
  outline: 3px solid var(--du-ref-green);
  outline-offset: 4px;
}

.du-ref-card::before {
  background: inherit;
  background-position: center;
  background-size: cover;
  content: "";
  inset: 0;
  position: absolute;
  transition: transform 450ms ease;
  z-index: 0;
}

.du-ref-card:hover::before,
.du-ref-card:focus-visible::before {
  transform: scale(1.06);
}

.du-ref-card__overlay {
  background: rgba(0, 0, 0, var(--du-ref-overlay));
  inset: 0;
  position: absolute;
  z-index: 1;
}

.du-ref-card__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  padding: clamp(18px, 3vw, 38px);
  position: relative;
  text-align: center;
  z-index: 2;
}

.du-ref-card__logo {
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
  height: auto;
  max-height: 74px;
  max-width: min(72%, 240px);
  object-fit: contain;
  width: auto;
}

.du-ref-card__title {
  color: #fff;
  display: block;
  font-size: clamp(1.35rem, 2.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.du-ref-card__caption {
  color: rgba(255, 255, 255, 0.88);
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.du-ref-detail {
  color: #161616;
  font-family: inherit;
  line-height: 1.65;
  margin-inline: auto;
  overflow: visible;
  width: 100%;
}

.du-ref-hero {
  align-items: end;
  background-color: #1f2937;
  background-image: var(--du-ref-hero);
  background-position: center;
  background-size: cover;
  display: grid;
  min-height: clamp(360px, 48vw, 680px);
  position: relative;
}

.du-ref-hero__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.72) 100%);
  inset: 0;
  position: absolute;
}

.du-ref-hero__content {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(40px, 7vw, 90px) 24px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.du-ref-kicker,
.du-ref-eyebrow {
  color: var(--du-ref-green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.du-ref-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 6rem);
  letter-spacing: -0.06em;
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}

.du-ref-hero__logo img {
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
  height: auto;
  max-height: 110px;
  max-width: min(520px, 80vw);
  object-fit: contain;
  width: auto;
}

.du-ref-section {
  margin: 0 auto;
  max-width: 1120px;
  padding: clamp(48px, 7vw, 92px) 24px;
}

.du-ref-section--intro {
  display: grid;
  gap: clamp(26px, 5vw, 64px);
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.25fr);
}

.du-ref-accent-box {
  align-self: start;
  background: var(--du-ref-accent);
  color: #fff;
  margin-top: clamp(-90px, -6vw, -54px);
  padding: clamp(26px, 4vw, 44px);
  position: relative;
  z-index: 2;
}

.du-ref-accent-box h2 {
  color: #fff;
  font-size: clamp(1.65rem, 3.6vw, 3.5rem);
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 0;
}

.du-ref-accent-box .du-ref-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.du-ref-text {
  color: #343434;
  font-size: clamp(1rem, 1.12vw, 1.14rem);
}

.du-ref-text p:first-child,
.du-ref-richtext > *:first-child {
  margin-top: 0;
}

.du-ref-text p:last-child,
.du-ref-richtext > *:last-child {
  margin-bottom: 0;
}

.du-ref-highlights {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 0;
}

.du-ref-highlight {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(16, 16, 16, 0.08);
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
  display: flex;
  font-weight: 700;
  gap: 12px;
  min-height: 84px;
  padding: 20px;
}

.du-ref-highlight span {
  align-items: center;
  background: var(--du-ref-green);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 16px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.du-ref-richtext {
  max-width: 860px;
}

.du-ref-richtext h2,
.du-ref-richtext h3 {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.du-ref-richtext img {
  height: auto;
  max-width: 100%;
}

.du-ref-project {
  align-items: center;
  background: var(--du-ref-soft);
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  max-width: none;
  padding-inline: max(24px, calc((100vw - 1120px) / 2));
}

.du-ref-project h2 {
  font-size: clamp(1.8rem, 4vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
  margin: 0 0 22px;
}

.du-ref-project__media {
  margin: 0;
}

.du-ref-project__media img {
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.18);
  display: block;
  height: auto;
  max-width: 100%;
}

.du-ref-gallery {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.du-ref-gallery figure {
  margin: 0;
}

.du-ref-gallery img {
  aspect-ratio: 16 / 10;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.du-ref-cta {
  background: var(--du-ref-green);
  padding: clamp(34px, 5vw, 54px) 24px;
  text-align: center;
}

.du-ref-button {
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff !important;
  display: inline-flex;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 14px 24px;
  text-decoration: none !important;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.du-ref-button:hover,
.du-ref-button:focus-visible {
  background: #fff;
  color: var(--du-ref-dark) !important;
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .du-ref-grid--cols-3,
  .du-ref-grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .du-ref-section--intro,
  .du-ref-project {
    grid-template-columns: 1fr;
  }

  .du-ref-accent-box {
    margin-top: clamp(-72px, -10vw, -34px);
  }

  .du-ref-highlights,
  .du-ref-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .du-ref-grid,
  .du-ref-grid--cols-2,
  .du-ref-grid--cols-3,
  .du-ref-grid--cols-4,
  .du-ref-highlights,
  .du-ref-gallery {
    grid-template-columns: 1fr;
  }

  .du-ref-card {
    aspect-ratio: 1.35 / 1;
  }

  .du-ref-hero {
    min-height: 360px;
  }

  .du-ref-section,
  .du-ref-hero__content {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Version 1.1.0: Customizer-gesteuerte Breiten und Detailseiten-Feinschliff */
.du-ref-overview,
.du-ref-detail {
  --du-ref-content-width: 1120px;
}


body.single-du_referenz {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  body.single-du_referenz {
    overflow-x: hidden;
  }
}

.du-ref-breakout {
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  max-width: 100vw;
  position: relative;
  right: 50%;
  width: 100vw;
}

.du-ref-grid,
.du-ref-section,
.du-ref-hero__content {
  max-width: var(--du-ref-content-width, 1120px);
}

.du-ref-grid {
  width: min(100%, var(--du-ref-content-width, 1280px));
}

.du-ref-overview--full {
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

.du-ref-overview--full .du-ref-grid {
  max-width: none;
  width: 100%;
}

.du-ref-section--intro.du-ref-section--accent-full {
  display: block;
  max-width: 100vw;
  padding: 0 0 clamp(48px, 7vw, 92px);
}

.du-ref-section--intro.du-ref-section--accent-full .du-ref-accent-box {
  margin-top: clamp(-90px, -6vw, -54px);
  padding-left: max(24px, calc((100vw - var(--du-ref-content-width, 1120px)) / 2));
  padding-right: max(24px, calc((100vw - var(--du-ref-content-width, 1120px)) / 2));
  width: 100%;
}

.du-ref-section--intro.du-ref-section--accent-full .du-ref-accent-box > * {
  max-width: var(--du-ref-content-width, 1120px);
}

.du-ref-section--intro.du-ref-section--accent-full .du-ref-intro-text {
  margin: clamp(30px, 4vw, 62px) auto 0;
  max-width: var(--du-ref-content-width, 1120px);
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.du-ref-project {
  padding-left: max(24px, calc((100vw - var(--du-ref-content-width, 1120px)) / 2));
  padding-right: max(24px, calc((100vw - var(--du-ref-content-width, 1120px)) / 2));
}

.du-ref-richtext {
  max-width: min(860px, var(--du-ref-content-width, 1120px));
}

body.du-ref-hide-theme-title.single-du_referenz .entry-title,
body.du-ref-hide-theme-title.single-du_referenz .page-title,
body.du-ref-hide-theme-title.single-du_referenz .post-title,
body.du-ref-hide-theme-title.single-du_referenz header.entry-header,
body.du-ref-hide-theme-title.single-du_referenz .page-header {
  display: none !important;
}

@media (max-width: 640px) {
  .du-ref-overview--full {
    padding-left: 18px;
    padding-right: 18px;
  }

  .du-ref-section--intro.du-ref-section--accent-full .du-ref-accent-box,
  .du-ref-section--intro.du-ref-section--accent-full .du-ref-intro-text {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* Version 1.3.0: Einzel-Referenz wie im Beispiel
   - Nur das Hero-/Beitragsbild bricht standardmäßig auf volle Browserbreite aus.
   - Die rote Referenzbox und alle folgenden Inhalte bleiben im normalen Container. */
.du-ref-detail {
  max-width: none;
  overflow: visible;
}

.du-ref-detail > .du-ref-hero.du-ref-breakout {
  margin-top: 0;
}

.du-ref-section--intro {
  display: block;
  max-width: var(--du-ref-content-width, 1120px);
  padding-top: 0;
}

.du-ref-section--intro:not(.du-ref-section--accent-full) .du-ref-accent-box {
  margin-top: clamp(-94px, -6vw, -58px);
  width: 100%;
}

.du-ref-section--intro:not(.du-ref-section--accent-full) .du-ref-intro-text {
  margin-top: clamp(30px, 4vw, 62px);
  max-width: 860px;
}

.du-ref-section--intro.du-ref-section--accent-full {
  display: block;
  max-width: 100vw;
  padding: 0 0 clamp(48px, 7vw, 92px);
}

.du-ref-section--intro.du-ref-section--accent-full .du-ref-accent-box {
  margin-top: clamp(-94px, -6vw, -58px);
}

.du-ref-project:not(.du-ref-breakout) {
  max-width: var(--du-ref-content-width, 1120px);
  padding-left: 24px;
  padding-right: 24px;
}

.du-ref-cta:not(.du-ref-breakout) {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--du-ref-content-width, 1120px);
}

@media (max-width: 640px) {
  .du-ref-section--intro:not(.du-ref-section--accent-full) .du-ref-accent-box {
    margin-top: -42px;
  }
}


/* Version 1.4.0: rote Referenzbox direkt unter dem Beitragsbild
   - Hero-/Beitragsbild bleibt auf Wunsch volle Browserbreite.
   - Die rote Referenzbox sitzt direkt darunter in normaler Containerbreite.
   - Kein seitlicher Split im Introbereich. */
.du-ref-section--intro {
  display: block;
  max-width: var(--du-ref-content-width, 1120px);
  padding-top: 0;
}

.du-ref-section--intro .du-ref-accent-box {
  display: block;
  margin-top: 0;
  margin-bottom: clamp(28px, 4vw, 44px);
  width: 100%;
}

.du-ref-section--intro .du-ref-intro-text {
  max-width: min(860px, 100%);
}

@media (max-width: 640px) {
  .du-ref-section--intro .du-ref-accent-box {
    margin-bottom: 24px;
  }
}


/* Version 1.5.0: Beitragsbild und rote Referenzfläche direkt untereinander
   Keine Überlappung, kein Abstand zwischen Hero und rotem Referenzblock. */
.du-ref-detail > .du-ref-hero {
  margin-bottom: 0 !important;
}

.du-ref-detail > .du-ref-section--intro {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.du-ref-section--intro .du-ref-accent-box {
  margin-top: 0 !important;
  transform: none !important;
  width: 100% !important;
}

.du-ref-section--intro .du-ref-intro-text {
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(28px, 4vw, 44px);
  max-width: min(860px, 100%);
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 640px) {
  .du-ref-section--intro .du-ref-intro-text {
    padding-left: 18px;
    padding-right: 18px;
  }
}


/* Version 1.6.0: Abstände oberhalb und unterhalb der roten Referenzfläche entfernen */
body.single-du_referenz .entry-content,
body.single-du_referenz .site-content,
body.single-du_referenz .content-area,
body.single-du_referenz main.site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.single-du_referenz .du-ref-detail {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.du-ref-detail > .du-ref-hero,
.du-ref-detail > .du-ref-hero.du-ref-breakout {
  display: grid;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.du-ref-detail > .du-ref-section--intro {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.du-ref-section--intro .du-ref-accent-box {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.du-ref-section--intro .du-ref-intro-text {
  margin-top: 0 !important;
  padding-top: clamp(26px, 4vw, 44px);
}

.du-ref-section--intro + .du-ref-section {
  margin-top: 0 !important;
}


/* Version 1.7.0: Container- und Responsivitäts-Fix
   Ziel: Texte, Highlights, Projektbereich und CTA sauber an der globalen Webseiten-/Header-Breite ausrichten. */
.du-ref-detail {
  --du-ref-container-padding: clamp(18px, 3vw, 32px);
}

/* Alle normalen Inhaltsbereiche folgen der im Customizer gesetzten Containerbreite. */
.du-ref-detail > .du-ref-section,
.du-ref-detail > .du-ref-richtext,
.du-ref-detail > .du-ref-highlights,
.du-ref-detail > .du-ref-gallery,
.du-ref-detail > .du-ref-project,
.du-ref-detail > .du-ref-cta,
.du-ref-detail > .du-ref-section--intro {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: var(--du-ref-content-width, 1120px) !important;
  width: 100%;
}

/* Hero bleibt unabhängig davon auf Wunsch fullwidth. */
.du-ref-detail > .du-ref-hero.du-ref-breakout {
  max-width: 100vw !important;
  width: 100vw !important;
}

/* Intro: rote Box volle Containerbreite, Text darunter ebenfalls am gleichen Container ausgerichtet. */
.du-ref-detail > .du-ref-section--intro {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.du-ref-section--intro .du-ref-accent-box {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

.du-ref-section--intro .du-ref-intro-text {
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none !important;
  padding-left: var(--du-ref-container-padding) !important;
  padding-right: var(--du-ref-container-padding) !important;
  width: 100% !important;
}

/* Fließtext nicht mehr auf 860px zusammendrücken. */
.du-ref-richtext {
  max-width: var(--du-ref-content-width, 1120px) !important;
  padding-left: var(--du-ref-container-padding) !important;
  padding-right: var(--du-ref-container-padding) !important;
}

.du-ref-richtext > * {
  max-width: none;
}

/* Highlights an Containerbreite ausrichten und sauber umbrechen. */
.du-ref-highlights {
  align-items: stretch;
  gap: clamp(12px, 2vw, 18px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-left: var(--du-ref-container-padding) !important;
  padding-right: var(--du-ref-container-padding) !important;
}

.du-ref-highlight {
  min-width: 0;
}

/* Projektbereich: wenn kein Bild gesetzt ist, nutzt der Text die volle Containerbreite.
   Dadurch entstehen keine komischen, schmalen Textspalten mehr. */
.du-ref-project {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: clamp(42px, 6vw, 84px) var(--du-ref-container-padding) !important;
}

.du-ref-project--no-media {
  grid-template-columns: 1fr !important;
}

.du-ref-project--no-media .du-ref-project__copy,
.du-ref-project--no-media .du-ref-text,
.du-ref-project--no-media h2 {
  max-width: none !important;
  width: 100%;
}

.du-ref-project--has-media {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

/* CTA ebenfalls exakt an die normale Containerbreite binden. */
.du-ref-cta {
  box-sizing: border-box;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: var(--du-ref-content-width, 1120px) !important;
  width: 100%;
}

/* Wenn Projekt oder CTA im Customizer bewusst fullwidth aktiviert werden, bleibt der Inhalt optisch an der Containerbreite ausgerichtet. */
.du-ref-project.du-ref-breakout,
.du-ref-cta.du-ref-breakout {
  max-width: 100vw !important;
  width: 100vw !important;
  padding-left: max(var(--du-ref-container-padding), calc((100vw - var(--du-ref-content-width, 1120px)) / 2)) !important;
  padding-right: max(var(--du-ref-container-padding), calc((100vw - var(--du-ref-content-width, 1120px)) / 2)) !important;
}

/* Responsive Feinschliff */
@media (max-width: 1100px) {
  .du-ref-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .du-ref-project--has-media {
    grid-template-columns: 1fr;
  }

  .du-ref-project__media {
    order: -1;
  }
}

@media (max-width: 760px) {
  .du-ref-detail {
    --du-ref-container-padding: 18px;
  }

  .du-ref-hero {
    min-height: clamp(280px, 62vw, 420px) !important;
  }

  .du-ref-accent-box {
    padding: 24px 18px !important;
  }

  .du-ref-accent-box h2 {
    font-size: clamp(1.75rem, 9vw, 2.75rem) !important;
    line-height: 1.02 !important;
  }

  .du-ref-highlights {
    grid-template-columns: 1fr !important;
    padding-top: 28px !important;
  }

  .du-ref-highlight {
    min-height: auto;
    padding: 16px;
  }

  .du-ref-richtext,
  .du-ref-project {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  .du-ref-project h2 {
    font-size: clamp(2rem, 9vw, 3rem) !important;
  }

  .du-ref-gallery {
    grid-template-columns: 1fr !important;
    padding-left: var(--du-ref-container-padding) !important;
    padding-right: var(--du-ref-container-padding) !important;
  }
}

@media (max-width: 420px) {
  .du-ref-detail {
    --du-ref-container-padding: 16px;
  }

  .du-ref-text,
  .du-ref-richtext {
    font-size: 1rem;
    line-height: 1.65;
  }

  .du-ref-button {
    justify-content: center;
    width: 100%;
  }
}


/* Version 1.8.0: Sprungnavigation und Ziel/Lösung/Ergebnis-Sektionen */
html {
  scroll-behavior: smooth;
}

.du-ref-process-nav {
  box-sizing: border-box;
  display: grid;
  gap: clamp(24px, 7vw, 120px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(46px, 7vw, 90px) auto clamp(56px, 8vw, 120px);
  max-width: var(--du-ref-content-width, 1120px);
  padding-left: var(--du-ref-container-padding, clamp(18px, 3vw, 32px));
  padding-right: var(--du-ref-container-padding, clamp(18px, 3vw, 32px));
  text-align: center;
  width: 100%;
}

.du-ref-process-nav__item {
  align-items: center;
  color: var(--du-ref-green) !important;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none !important;
}

.du-ref-process-nav__label {
  display: block;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.du-ref-process-nav__button {
  align-items: center;
  border: 2px solid currentColor;
  color: var(--du-ref-green);
  display: inline-flex;
  height: 56px;
  justify-content: center;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
  width: 56px;
}

.du-ref-process-nav__item:hover .du-ref-process-nav__button,
.du-ref-process-nav__item:focus-visible .du-ref-process-nav__button {
  background: var(--du-ref-green);
  color: #fff;
  transform: translateY(4px);
}

.du-ref-process-wrap {
  margin: 0;
  width: 100%;
}

.du-ref-process-section {
  background: #b9bec7;
  color: #fff;
  scroll-margin-top: 130px;
}

.du-ref-process-section + .du-ref-process-section {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.du-ref-process-section__inner {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: var(--du-ref-content-width, 1120px);
  min-height: clamp(340px, 44vw, 520px);
  padding: 0 var(--du-ref-container-padding, clamp(18px, 3vw, 32px)) clamp(54px, 7vw, 92px);
  width: 100%;
}

.du-ref-process-heading {
  background: #0875d1;
  box-sizing: border-box;
  color: #fff;
  margin: 0 0 clamp(44px, 6vw, 72px);
  max-width: min(680px, 100%);
  padding: clamp(26px, 4vw, 42px);
  transform: translateY(-36px);
}

.du-ref-process-heading h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin: 0;
}

.du-ref-process-heading p {
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  line-height: 1.35;
  margin: 10px 0 0;
}

.du-ref-process-list {
  list-style: disc;
  margin: 0;
  padding: 0 0 0 1.25em;
}

.du-ref-process-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  font-size: clamp(1rem, 1.45vw, 1.32rem);
  line-height: 1.55;
  padding: 8px 0 10px;
}

.du-ref-process-section--solutions .du-ref-process-heading {
  background: var(--du-ref-accent);
}

.du-ref-process-section--results .du-ref-process-heading {
  background: var(--du-ref-green);
}

@media (max-width: 860px) {
  .du-ref-process-nav {
    gap: 18px;
    margin-top: 40px;
    margin-bottom: 74px;
  }

  .du-ref-process-nav__button {
    height: 48px;
    width: 48px;
  }

  .du-ref-process-section__inner {
    min-height: auto;
    padding-bottom: 54px;
  }

  .du-ref-process-heading {
    transform: translateY(-28px);
  }
}

@media (max-width: 640px) {
  .du-ref-process-nav {
    grid-template-columns: 1fr;
    margin-bottom: 54px;
  }

  .du-ref-process-nav__item {
    gap: 10px;
  }

  .du-ref-process-section {
    scroll-margin-top: 90px;
  }

  .du-ref-process-heading {
    margin-bottom: 18px;
    padding: 24px 18px;
    transform: none;
  }

  .du-ref-process-section__inner {
    padding-top: 0;
  }

  .du-ref-process-list li {
    font-size: 1rem;
  }
}


/* Version 1.9.0: einheitliche Farbe und volle Breite für die Prozess-Sektion
   Hinweis: Eingabe war #1976b. Da 5-stellige Hex-Farben in CSS ungültig sind,
   wird die gültige, naheliegende Farbe #1976B2 verwendet. */
.du-ref-overview,
.du-ref-detail {
  --du-ref-accent: #1976B2 !important;
  --du-ref-green: #1976B2 !important;
  --du-ref-process-blue: #1976B2 !important;
}

/* Alle bisherigen Farbvarianten in der Ziele/Lösungen/Ergebnis-Sektion vereinheitlichen. */
.du-ref-process-nav__item,
.du-ref-process-nav__button {
  color: #1976B2 !important;
}

.du-ref-process-nav__item:hover .du-ref-process-nav__button,
.du-ref-process-nav__item:focus-visible .du-ref-process-nav__button {
  background: #1976B2 !important;
  color: #fff !important;
}

.du-ref-process-heading,
.du-ref-process-section--goals .du-ref-process-heading,
.du-ref-process-section--solutions .du-ref-process-heading,
.du-ref-process-section--results .du-ref-process-heading,
.du-ref-accent-box,
.du-ref-cta,
.du-ref-button:hover,
.du-ref-button:focus-visible {
  background: #1976B2 !important;
}

.du-ref-highlight span {
  background: #1976B2 !important;
}

/* Prozessbereich auf volle Browserbreite ziehen. */
.du-ref-process-wrap {
  left: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  max-width: 100vw !important;
  position: relative;
  right: 50%;
  width: 100vw !important;
}

.du-ref-process-section {
  width: 100vw !important;
  max-width: 100vw !important;
}

.du-ref-process-section__inner {
  max-width: none !important;
  width: 100% !important;
  padding-left: max(var(--du-ref-container-padding, 24px), calc((100vw - var(--du-ref-content-width, 1120px)) / 2)) !important;
  padding-right: max(var(--du-ref-container-padding, 24px), calc((100vw - var(--du-ref-content-width, 1120px)) / 2)) !important;
}

/* Der farbige Titelblock soll auf Desktop breiter wirken, aber lesbar bleiben. */
.du-ref-process-heading {
  max-width: min(720px, 100%) !important;
}

/* Optional: Auch die obere Sprungnavigation sauber auf volle Breite verteilen. */
.du-ref-process-nav {
  max-width: var(--du-ref-content-width, 1120px) !important;
}

/* Haupt-Container kann im Customizer weiterhin gesteuert werden; Standard wirkt nun breiter. */
.du-ref-grid,
.du-ref-section,
.du-ref-hero__content {
  max-width: var(--du-ref-content-width, 1280px);
}

@media (max-width: 760px) {
  .du-ref-process-section__inner {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .du-ref-process-wrap {
    left: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    right: 50%;
    width: 100vw !important;
  }
}


/* Version 1.10.0: Prozessbereich heller, Mobilnavigation in einer Reihe, CTA entfernt */
.du-ref-process-section,
.du-ref-process-wrap {
  background: #ffffff !important;
}

.du-ref-process-section {
  color: #15202b !important;
}

.du-ref-process-section + .du-ref-process-section {
  border-top: 0 !important;
}

.du-ref-process-section__inner {
  background: #ffffff !important;
}

/* Titelblock und Inhalt stehen sauber untereinander. */
.du-ref-process-heading {
  display: block !important;
  margin-bottom: clamp(28px, 4vw, 48px) !important;
}

.du-ref-process-list {
  color: #15202b !important;
  display: block !important;
  max-width: none !important;
  width: 100%;
}

.du-ref-process-list li {
  border-bottom: 1px solid rgba(25, 118, 178, 0.22) !important;
  color: #15202b !important;
}

/* CTA / Projekt anfragen vollständig ausblenden, auch falls alte Inhalte noch gesetzt sind. */
.du-ref-cta,
.du-ref-button {
  display: none !important;
}

/* Mobile: Die Ziele / Unsere Lösungen / Ergebnis bleiben nebeneinander in einer Reihe. */
@media (max-width: 640px) {
  .du-ref-process-nav {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 30px !important;
    margin-bottom: 42px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .du-ref-process-nav__item {
    gap: 8px !important;
    min-width: 0;
  }

  .du-ref-process-nav__label {
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
    min-height: 2.4em;
    display: flex !important;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
  }

  .du-ref-process-nav__button {
    height: 38px !important;
    width: 38px !important;
  }

  .du-ref-process-heading {
    margin-bottom: 22px !important;
  }
}

@media (max-width: 380px) {
  .du-ref-process-nav__label {
    font-size: 0.72rem !important;
  }

  .du-ref-process-nav__button {
    height: 34px !important;
    width: 34px !important;
  }
}


/* Version 1.11.0: Referenz-Übersicht Cards */
.du-ref-overview {
  margin: 0 !important;
  padding: 0 !important;
}

.du-ref-overview .du-ref-grid {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.du-ref-card {
  border-radius: 20px !important;
  min-height: clamp(250px, 22vw, 360px);
}

.du-ref-card::before,
.du-ref-card__overlay {
  border-radius: inherit;
}

@media (max-width: 980px) {
  .du-ref-card {
    min-height: clamp(230px, 34vw, 320px);
  }
}

@media (max-width: 640px) {
  .du-ref-card {
    aspect-ratio: auto !important;
    min-height: 250px;
  }
}


/* Version 1.12.0: Referenz-Übersicht repariert
   - keine Überlappungen
   - gleichmäßige Card-Breiten
   - keine unnötigen Außenabstände links/rechts innerhalb der Reihe
   - höhere Cards mit sauberem Radius */
.du-ref-overview {
  box-sizing: border-box;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 100% !important;
}

.du-ref-overview .du-ref-grid {
  box-sizing: border-box;
  display: grid !important;
  gap: clamp(18px, 2.4vw, 34px) !important;
  margin: 0 auto !important;
  max-width: var(--du-ref-content-width, 1280px) !important;
  padding: 0 !important;
  width: 100% !important;
}

.du-ref-overview .du-ref-grid--cols-1 {
  grid-template-columns: 1fr !important;
}

.du-ref-overview .du-ref-grid--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.du-ref-overview .du-ref-grid--cols-3,
.du-ref-overview .du-ref-grid--cols-4 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.du-ref-overview .du-ref-card {
  aspect-ratio: auto !important;
  border-radius: 20px !important;
  box-sizing: border-box;
  display: flex !important;
  height: clamp(260px, 24vw, 380px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  width: 100% !important;
}

.du-ref-overview .du-ref-card::before,
.du-ref-overview .du-ref-card__overlay {
  border-radius: 20px !important;
}

.du-ref-overview .du-ref-card__inner {
  max-width: 100%;
  overflow: hidden;
}

.du-ref-overview .du-ref-card__title {
  max-width: 90%;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

@media (max-width: 980px) {
  .du-ref-overview .du-ref-grid--cols-3,
  .du-ref-overview .du-ref-grid--cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .du-ref-overview .du-ref-card {
    height: clamp(240px, 38vw, 340px) !important;
  }
}

@media (max-width: 640px) {
  .du-ref-overview .du-ref-grid,
  .du-ref-overview .du-ref-grid--cols-1,
  .du-ref-overview .du-ref-grid--cols-2,
  .du-ref-overview .du-ref-grid--cols-3,
  .du-ref-overview .du-ref-grid--cols-4 {
    grid-template-columns: 1fr !important;
  }

  .du-ref-overview .du-ref-card {
    height: 260px !important;
  }
}


/* Version 1.13.0: Übersicht nicht mehr durch --du-ref-content-width: 1120px begrenzen
   Das alte Inline-Style bleibt aus Kompatibilitätsgründen vorhanden, die Card-Übersicht
   nutzt jetzt aber eine eigene Breite und kann dadurch sauber über die verfügbare Breite laufen. */
.du-ref-overview {
  --du-ref-overview-width: 100%;
}

.du-ref-overview .du-ref-grid {
  max-width: var(--du-ref-overview-width, 100%) !important;
  width: 100% !important;
}

/* Falls das Theme den Shortcode in einen Container setzt, füllt die Übersicht diesen Container komplett aus. */
.du-ref-overview:not(.du-ref-overview--full) {
  width: 100% !important;
}

/* Wenn "Referenzen-Übersicht volle Browserbreite" im Customizer aktiviert ist,
   wird die Übersicht wirklich randlos auf Browserbreite gezogen. */
.du-ref-overview--full.du-ref-breakout {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.du-ref-overview--full.du-ref-breakout .du-ref-grid {
  max-width: 100vw !important;
  width: 100vw !important;
}


/* Version 1.14.0: Card-Breite entfernt und Button-Link in Card */
.du-ref-overview {
  width: 100% !important;
}

.du-ref-overview .du-ref-grid {
  max-width: none !important;
  width: 100% !important;
}

.du-ref-card {
  cursor: default !important;
  text-decoration: none !important;
}

.du-ref-card__inner {
  pointer-events: none;
}

.du-ref-card__button {
  align-items: center;
  background: #1976B2;
  border: 1px solid #1976B2;
  border-radius: 999px;
  color: #fff !important;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  margin-top: 18px;
  min-height: 42px;
  padding: 13px 22px;
  pointer-events: auto;
  text-decoration: none !important;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.du-ref-card__button:hover,
.du-ref-card__button:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #1976B2 !important;
  transform: translateY(-2px);
}

.du-ref-card__button:focus-visible {
  outline: 3px solid rgba(255,255,255,0.65);
  outline-offset: 3px;
}

/* Hover-Effekt nur noch auf die Card, Klick nur noch auf den Button-Link. */
.du-ref-card:hover,
.du-ref-card:focus-within {
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
  filter: saturate(1.04);
  transform: translateY(-4px);
}

@media (max-width: 640px) {
  .du-ref-card__button {
    font-size: 0.88rem;
    min-height: 40px;
    padding: 12px 18px;
  }
}


/* Version 1.15.0: Card-Link nur beim Hover sichtbar, ohne Button-Hintergrund */
.du-ref-card__button {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-size: clamp(0.92rem, 1vw, 1.02rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  margin-top: 18px !important;
  min-height: auto !important;
  opacity: 0;
  padding: 0 !important;
  pointer-events: none;
  position: relative;
  text-decoration: none !important;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease, color 180ms ease;
}

.du-ref-card__button::after {
  content: "↗";
  display: inline-block;
  font-size: 1.08em;
  line-height: 1;
  margin-left: 9px;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.du-ref-card:hover .du-ref-card__button,
.du-ref-card:focus-within .du-ref-card__button {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.du-ref-card__button:hover,
.du-ref-card__button:focus-visible {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  transform: translateY(0);
}

.du-ref-card__button:hover::after,
.du-ref-card__button:focus-visible::after {
  transform: translate(3px, -4px);
}

.du-ref-card__button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 5px;
}

/* Auf Touch-Geräten gibt es keinen echten Hover. Dort bleibt der Link sichtbar, damit die Referenz erreichbar bleibt. */
@media (hover: none) {
  .du-ref-card__button {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}


/* Version 1.16.0: Detailseite Radius + grauen #f2f2f2-Hintergrund entfernen */
.du-ref-detail {
  --du-ref-radius: 20px;
}

/* Haupt-Titelboxen */
.du-ref-accent-box,
.du-ref-process-heading {
  border-radius: var(--du-ref-radius) !important;
  overflow: hidden;
}

/* Leistungen / Highlights */
.du-ref-highlight {
  border-radius: var(--du-ref-radius) !important;
  overflow: hidden;
}

/* Sprung-Navigation Buttons */
.du-ref-process-nav__button {
  border-radius: var(--du-ref-radius) !important;
}

/* Projekt- und Medienbereiche */
.du-ref-project {
  border-radius: var(--du-ref-radius) !important;
  overflow: hidden;
}

.du-ref-project__media,
.du-ref-project__media img,
.du-ref-gallery figure,
.du-ref-gallery img {
  border-radius: var(--du-ref-radius) !important;
  overflow: hidden;
}

/* Prozessbereich soll keinen #f2f2f2-Hintergrund mehr bekommen. */
.du-ref-process-wrap,
.du-ref-process-section,
.du-ref-process-section__inner {
  background: transparent !important;
}

/* Wenn ein Theme/alte CSS-Regel noch Grau erzwingt, Detailflächen weiß/transparent halten. */
.du-ref-process-section {
  color: #15202b !important;
}

.du-ref-process-list li {
  color: #15202b !important;
}

/* Mobile: Radius beibehalten, aber mit sauberem Abstand */
@media (max-width: 640px) {
  .du-ref-accent-box,
  .du-ref-process-heading,
  .du-ref-highlight,
  .du-ref-process-nav__button,
  .du-ref-project,
  .du-ref-project__media,
  .du-ref-project__media img,
  .du-ref-gallery figure,
  .du-ref-gallery img {
    border-radius: 20px !important;
  }
}


/* Version 1.17.0: Webseiten-Button nach dem ersten Intro-Text */
.du-ref-website-link-wrap {
  box-sizing: border-box;
  margin-top: clamp(20px, 3vw, 32px);
  padding-left: var(--du-ref-container-padding, clamp(18px, 3vw, 32px));
  padding-right: var(--du-ref-container-padding, clamp(18px, 3vw, 32px));
  width: 100%;
}

.du-ref-website-button {
  align-items: center;
  background: #1976B2;
  border: 1px solid #1976B2;
  border-radius: 20px;
  color: #fff !important;
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  line-height: 1;
  min-height: 46px;
  padding: 14px 22px;
  text-decoration: none !important;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.du-ref-website-button:hover,
.du-ref-website-button:focus-visible {
  background: #fff;
  border-color: #1976B2;
  color: #1976B2 !important;
  transform: translateY(-2px);
}

.du-ref-website-button span {
  display: inline-block;
  line-height: 1;
  transition: transform 180ms ease;
}

.du-ref-website-button:hover span,
.du-ref-website-button:focus-visible span {
  transform: translate(3px, -3px);
}

@media (max-width: 640px) {
  .du-ref-website-button {
    width: 100%;
  }
}


/* Version 1.18.0: Intro-Titelbox ohne Radius + 50px Abstand nach Intro-Text */
.du-ref-accent-box {
  border-radius: 0 !important;
}

/* Abstand zwischen Intro-Text/Webseiten-Link und Leistungs-Liste */
.du-ref-detail > .du-ref-section--intro {
  padding-bottom: 50px !important;
}

.du-ref-section--intro .du-ref-intro-text {
  margin-bottom: 0 !important;
}

.du-ref-website-link-wrap {
  margin-bottom: 0 !important;
}

/* Falls die Leistungs-Liste direkt folgt, keinen zusätzlichen Gegenabstand oben erzeugen */
.du-ref-section--intro + .du-ref-highlights {
  padding-top: 0 !important;
}


/* Version 1.18.1: Sprungnavigation gleichmäßig */
.du-ref-process-nav {
  align-items: start !important;
  margin-top: 100px !important;
  margin-bottom: 100px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.du-ref-process-nav__item {
  gap: 22px !important;
}

.du-ref-process-nav__label {
  font-size: 24px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  min-height: 30px;
}

/* Alle drei Pfeil-Buttons exakt gleich groß */
.du-ref-process-nav__button {
  height: 56px !important;
  width: 56px !important;
  min-width: 56px !important;
  border-radius: 20px !important;
}

/* Mobile: weiterhin in einer Reihe, aber mit gleicher Schriftgröße */
@media (max-width: 640px) {
  .du-ref-process-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: 100px !important;
    margin-bottom: 100px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .du-ref-process-nav__item {
    gap: 12px !important;
  }

  .du-ref-process-nav__label {
    align-items: flex-end;
    display: flex !important;
    font-size: 14px !important;
    justify-content: center;
    line-height: 1.25 !important;
    min-height: 36px;
    text-align: center;
  }

  .du-ref-process-nav__button {
    height: 42px !important;
    min-width: 42px !important;
    width: 42px !important;
  }
}

@media (max-width: 380px) {
  .du-ref-process-nav__label {
    font-size: 13px !important;
  }

  .du-ref-process-nav__button {
    height: 38px !important;
    min-width: 38px !important;
    width: 38px !important;
  }
}


/* Version 1.18.2: Seitenpadding entfernen + Leistungen ausblenden */
.du-ref-detail {
  --du-ref-container-padding: 0px !important;
}

/* Den im CSS gesetzten Seitenabstand entfernen. */
.du-ref-section,
.du-ref-section--intro,
.du-ref-section--intro .du-ref-intro-text,
.du-ref-website-link-wrap,
.du-ref-process-nav,
.du-ref-process-section__inner,
.du-ref-richtext,
.du-ref-project,
.du-ref-gallery,
.du-ref-cta {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Leistungen/Check-Icon-Liste zusätzlich per CSS ausblenden, falls alte Templates gecacht sind. */
.du-ref-highlights,
.du-ref-highlight {
  display: none !important;
}

/* Mobile ebenfalls ohne seitliches Container-Padding. */
@media (max-width: 640px) {
  .du-ref-detail {
    --du-ref-container-padding: 0px !important;
  }

  .du-ref-section,
  .du-ref-section--intro,
  .du-ref-section--intro .du-ref-intro-text,
  .du-ref-website-link-wrap,
  .du-ref-process-nav,
  .du-ref-process-section__inner,
  .du-ref-richtext,
  .du-ref-project,
  .du-ref-gallery,
  .du-ref-cta {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* Version 1.18.3: Detailseiten optional global deaktivierbar */
.du-ref-card--no-detail .du-ref-card__button,
body.du-ref-detail-disabled .du-ref-card__button {
  display: none !important;
}

.du-ref-card--no-detail {
  cursor: default !important;
}


/* Version 1.18.4: Bei deaktivierten Detailseiten nur Card-Link/Button entfernen, keine 404 */
.du-ref-card--no-detail .du-ref-card__button,
body.du-ref-detail-disabled .du-ref-card__button {
  display: none !important;
}

.du-ref-card--no-detail {
  cursor: default !important;
}


/* Version 1.18.5: Einstellungen sind zusätzlich direkt im Referenzen-Menü verfügbar.
   Frontend benötigt dafür keine zusätzlichen Styles. */
